diff --git a/nginx.conf.sigil b/nginx.conf.sigil index fb44d308965e30d442d9ff886a435db4263d155c..623120a4bf2386cd8845cc14d6fa70e4ecdcfcf7 100644 --- a/nginx.conf.sigil +++ b/nginx.conf.sigil @@ -82,13 +82,6 @@ server { keepalive_timeout 70; {{ if and (eq $.SPDY_SUPPORTED "true") (ne $.HTTP2_SUPPORTED "true") }}add_header Alternate-Protocol {{ $.PROXY_SSL_PORT }}:npn-spdy/2;{{ end }} -## Static file hosting - - location /static/ { - alias /var/lib/dokku/data/storage/mwmbl/; - } - - location / { @@ -174,6 +167,11 @@ server { root {{ $.DOKKU_LIB_ROOT }}/data/nginx-vhosts/dokku-errors; internal; } + + ## Static file hosting + location /static/ { + alias /var/lib/dokku/data/storage/mwmbl/; + } } {{ else if eq $scheme "grpc"}} {{ if eq $.GRPC_SUPPORTED "true"}}{{ if eq $.HTTP2_SUPPORTED "true"}}