summaryrefslogtreecommitdiff
path: root/install/nginx.conf.template
diff options
context:
space:
mode:
Diffstat (limited to 'install/nginx.conf.template')
-rw-r--r--install/nginx.conf.template18
1 files changed, 4 insertions, 14 deletions
diff --git a/install/nginx.conf.template b/install/nginx.conf.template
index dd236d113..15333393b 100644
--- a/install/nginx.conf.template
+++ b/install/nginx.conf.template
@@ -1,28 +1,18 @@
server {
listen #NGINX_PORT#;
server_name #URL#;
- root /srv/#DB_NAME#/ishtar/;
+ root #INSTALL_PATH#;
access_log /var/log/django/#APP_NAME#-access.log;
error_log /var/log/django/#APP_NAME#-error.log;
client_max_body_size 20M;
- location /static-#DATE#/ { # STATIC_URL
- alias /srv/#DB_NAME#/ishtar/#APP_NAME#/static/; # STATIC_ROOT
+ location /static/ { # STATIC_URL
+ alias #INSTALL_PATH#/#APP_NAME#/static/; # STATIC_ROOT
expires 30d;
}
location /media/ { # MEDIA_URL
- alias /srv/#DB_NAME#/ishtar/#APP_NAME#/media/; # MEDIA_ROOT
- expires 30d;
- }
-
- location /tinymce/ {
- alias /usr/share/tinymce/www/;
- expires 30d;
- }
-
- location /javascript/ {
- alias /usr/share/javascript/;
+ alias #INSTALL_PATH#/#APP_NAME#/media/; # MEDIA_ROOT
expires 30d;
}