From cf443b6d280191c66aca990aa6bdf37dd069af68 Mon Sep 17 00:00:00 2001 From: Isaac Bythewood Date: Thu, 27 Sep 2012 15:21:20 +0000 Subject: [PATCH] Added conf files directly to project. --- conf/nginx.conf | 25 +++++++++++++++++++++++++ conf/uwsgi.ini | 13 +++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 conf/nginx.conf create mode 100644 conf/uwsgi.ini diff --git a/conf/nginx.conf b/conf/nginx.conf new file mode 100644 index 0000000..12d4f41 --- /dev/null +++ b/conf/nginx.conf @@ -0,0 +1,25 @@ +server { + listen 80; + server_name pinry.bythewood.me; + + access_log /srv/www/pinry/logs/access.log; + error_log /srv/www/pinry/logs/error.log; + + location /static { + alias /srv/www/pinry/static; + expires max; + access_log off; + } + + location /media { + alias /srv/www/pinry/media; + expires max; + access_log off; + } + + location / { + include uwsgi_params; + uwsgi_pass unix:/srv/www/pinry/uwsgi/socket; + } +} + diff --git a/conf/uwsgi.ini b/conf/uwsgi.ini new file mode 100644 index 0000000..91b4109 --- /dev/null +++ b/conf/uwsgi.ini @@ -0,0 +1,13 @@ +[uwsgi] +projectname = pinry +base = /srv/www/%(projectname) + +protocol = uwsgi +app = wsgi +plugins = http,python +home = %(base) +pythonpath = %(base) +module = %(app) +socket = %(base)/uwsgi/socket +logto = %(base)/logs/uwsgi.log +