diff options
| author | Cyril Brulebois <cyril@debamax.com> | 2016-04-03 05:17:19 +0200 |
|---|---|---|
| committer | Cyril Brulebois <cyril@debamax.com> | 2016-04-03 05:55:05 +0200 |
| commit | ac8c5e9f1d02bbc235f4c1a2664f1ab8d3c3798f (patch) | |
| tree | 63a89904a60bb6274bd7864cb40c3daa4031ceee /install/nginx.conf.template | |
| parent | d459f5eb9232bd3da3e779ac32bf5065b9680212 (diff) | |
| download | Ishtar-ac8c5e9f1d02bbc235f4c1a2664f1ab8d3c3798f.tar.bz2 Ishtar-ac8c5e9f1d02bbc235f4c1a2664f1ab8d3c3798f.zip | |
Make INSTALL_PREFIX configurable.
Since a comment insisted on this topic, make sure to add a trailing
slash if that variable wasn't set properly.
This means adjusting the templates in addition to the main script. A
slash is kept as a separator in those to keep them readable, which
explains the slightly awkward (uwsgi and nginx) sed calls.
Diffstat (limited to 'install/nginx.conf.template')
| -rw-r--r-- | install/nginx.conf.template | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/install/nginx.conf.template b/install/nginx.conf.template index c41018786..8df09e859 100644 --- a/install/nginx.conf.template +++ b/install/nginx.conf.template @@ -1,18 +1,18 @@ server { listen #NGINX_PORT#; server_name #URL#; - root /srv/#DB_NAME#/ishtar/; + root #INSTALL_PREFIX#/#DB_NAME#/ishtar/; 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 + alias #INSTALL_PREFIX#/#DB_NAME#/ishtar/#APP_NAME#/static/; # STATIC_ROOT expires 30d; } location /media/ { # MEDIA_URL - alias /srv/#DB_NAME#/ishtar/#APP_NAME#/media/; # MEDIA_ROOT + alias #INSTALL_PREFIX#/#DB_NAME#/ishtar/#APP_NAME#/media/; # MEDIA_ROOT expires 30d; } |
