diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-04-17 19:30:20 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-04-17 19:33:43 +0200 |
commit | f57f79d40b9a6c8cc1333165ee11a341c78be181 (patch) | |
tree | 9111c25f355c8b5f4d4d612a52505af3c5cf04fd /install/nginx.conf.template | |
parent | d2715ef9bee36243ee4c07a5b1bd869f5cc81456 (diff) | |
download | Ishtar-f57f79d40b9a6c8cc1333165ee11a341c78be181.tar.bz2 Ishtar-f57f79d40b9a6c8cc1333165ee11a341c78be181.zip |
Install scripts
Diffstat (limited to 'install/nginx.conf.template')
-rw-r--r-- | install/nginx.conf.template | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/install/nginx.conf.template b/install/nginx.conf.template new file mode 100644 index 000000000..0a68be712 --- /dev/null +++ b/install/nginx.conf.template @@ -0,0 +1,34 @@ +server { + listen #NGINX_PORT#; + server_name #URL#; + root /srv/#DB_NAME#/ishtar/; + access_log /var/log/django/#SHORT_NAME#-access.log; + error_log /var/log/django/#SHORT_NAME#-error.log; + client_max_body_size 20M; + + location /static-#DATE#/ { # STATIC_URL + alias /srv/#DB_NAME#/ishtar/#SHORT_NAME#/static/; # STATIC_ROOT + expires 30d; + } + + location /media/ { # MEDIA_URL + alias /srv/#DB_NAME#/ishtar/#SHORT_NAME#/media/; # MEDIA_ROOT + expires 30d; + } + + location /tinymce/ { + alias /usr/share/tinymce/www/; + expires 30d; + } + + location /javascript/ { + alias /usr/share/javascript/; + expires 30d; + } + + location / { + include uwsgi_params; + uwsgi_pass 127.0.0.1:#UWSGI_PORT#; + } +} + |