From 1e25ca1c79333ca18c04191b2790d20b17c1a2b6 Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 14 Jan 2014 03:09:07 +0100 Subject: add paste.retiolum site --- sites/paste.retiolum/README.md | 31 ++++++++++++++++++++++ sites/paste.retiolum/bump | 1 + .../etc/nginx/sites-available/paste.conf | 14 ++++++++++ .../etc/supervisor.d/bump.supervisor.conf | 5 ++++ 4 files changed, 51 insertions(+) create mode 100644 sites/paste.retiolum/README.md create mode 160000 sites/paste.retiolum/bump create mode 100644 sites/paste.retiolum/etc/nginx/sites-available/paste.conf create mode 100644 sites/paste.retiolum/etc/supervisor.d/bump.supervisor.conf (limited to 'sites/paste.retiolum') diff --git a/sites/paste.retiolum/README.md b/sites/paste.retiolum/README.md new file mode 100644 index 00000000..3c634f95 --- /dev/null +++ b/sites/paste.retiolum/README.md @@ -0,0 +1,31 @@ +# paste.retiolum + +paste is a minimalistic pastebin with sprunge.us in mind. +This paste may be a supplement to all the 'open' pastebins as the punching +lemma applies to this installation. +The installation always runs on a higher port (4000), to get a really short +hostname, the host which provides this service should have a short name as well +and have an nginx or apache which translates all request to hostname:80 to +localhost:4000. see Nginx Configuration. + +# Sources + +- https://github.com/makefu/bump + +# Installation + +## Environment + + git clone https://github.com/makefu/bump + useradd -a bump -m -d /opt/bump + cd /opt/paste + virtualenv . + pip install -r deps.txt + +## Nginx + +see etc/nginx/ + +## Supervisor + +see etc/supervisor.d/ diff --git a/sites/paste.retiolum/bump b/sites/paste.retiolum/bump new file mode 160000 index 00000000..119d2723 --- /dev/null +++ b/sites/paste.retiolum/bump @@ -0,0 +1 @@ +Subproject commit 119d2723b510be392ca03d5bca7e1573e533f848 diff --git a/sites/paste.retiolum/etc/nginx/sites-available/paste.conf b/sites/paste.retiolum/etc/nginx/sites-available/paste.conf new file mode 100644 index 00000000..b83abf95 --- /dev/null +++ b/sites/paste.retiolum/etc/nginx/sites-available/paste.conf @@ -0,0 +1,14 @@ +server { + listen :80; + server_name paste paste.retiolum; + access_log /var/log/nginx/log/paste.log main; + error_log /var/log/nginx/log/paste_error.log; + default_type text/plain; + location / { + proxy_pass http://127.0.0.1:4000/; + proxy_redirect off; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } +} diff --git a/sites/paste.retiolum/etc/supervisor.d/bump.supervisor.conf b/sites/paste.retiolum/etc/supervisor.d/bump.supervisor.conf new file mode 100644 index 00000000..6b83d5f2 --- /dev/null +++ b/sites/paste.retiolum/etc/supervisor.d/bump.supervisor.conf @@ -0,0 +1,5 @@ +[program:bump] +command=sh run.sh +user=bump +directory=/opt/bump +autorestart=true -- cgit v1.2.3