diff options
author | Étienne Loks <etienne@peacefrogs.net> | 2019-08-26 20:11:52 +0200 |
---|---|---|
committer | Étienne Loks <etienne@peacefrogs.net> | 2019-08-26 20:13:37 +0200 |
commit | 6922d81fa5efe02a620e9e779a9c3ffbfc6c4eb8 (patch) | |
tree | 5c3eedf34e31511a20edd3a39b5275c59a0394e2 /conf | |
parent | 878ba9348c15860260462248446fda2cbbd7065c (diff) | |
download | ishtar-pergamon-6922d81fa5efe02a620e9e779a9c3ffbfc6c4eb8.tar.bz2 ishtar-pergamon-6922d81fa5efe02a620e9e779a9c3ffbfc6c4eb8.zip |
Install instruction
Diffstat (limited to 'conf')
-rw-r--r-- | conf/nginx.conf.template | 33 | ||||
-rw-r--r-- | conf/uwsgi.ini.template | 17 |
2 files changed, 50 insertions, 0 deletions
diff --git a/conf/nginx.conf.template b/conf/nginx.conf.template new file mode 100644 index 0000000..785bc57 --- /dev/null +++ b/conf/nginx.conf.template @@ -0,0 +1,33 @@ +server { + listen 80; + server_name #URL#; + root /srv/ishtar-pergamon/; + access_log /var/log/django/pergamon-access.log; + error_log /var/log/django/pergamon-error.log; + + gzip on; + gzip_disable "msie6"; + gzip_comp_level 6; + gzip_min_length 1100; + gzip_buffers 16 8k; + gzip_proxied any; + gzip_types text/plain text/css text/js text/xml text/javascript application/javascript application/x-javascript application/json application/xml application/rss+xml image/svg+xml; + + location /static/ { # STATIC_URL + alias /srv/ishtar-pergamon/static/; # STATIC_ROOT + expires 30d; + } + + location /media/ { # MEDIA_URL + alias /srv/ishtar-pergamon/media/; # MEDIA_ROOT + expires 30d; + } + + location / { + include uwsgi_params; + uwsgi_pass unix:/var/lib/uwsgi/run/ishtar_pergamon.sock; + uwsgi_read_timeout 1800; + uwsgi_send_timeout 600; + } +} + diff --git a/conf/uwsgi.ini.template b/conf/uwsgi.ini.template new file mode 100644 index 0000000..2c06fad --- /dev/null +++ b/conf/uwsgi.ini.template @@ -0,0 +1,17 @@ +[uwsgi] +# variables +projectname = pergamon +projectdomain = #URL# +base = /srv/ishtar-pergamon + +# config +plugins = python +master = true +protocol = uwsgi +env = DJANGO_SETTINGS_MODULE=%(projectname).settings +pythonpath = %(base) +module = %(projectname).wsgi +socket = /var/lib/uwsgi/run/%(projectname).sock +logto = /var/log/uwsgi/%(projectname).log +daemonize = /var/log/uwsgi/daemon-%(projectname).log +buffer-size=65535 |