From 0b380b50bf9cc7c65603423dafbcd98c1d1cd7dc Mon Sep 17 00:00:00 2001 From: Daoud Clarke Date: Wed, 11 Oct 2023 21:15:23 +0100 Subject: [PATCH] Move the static spec down --- nginx.conf.sigil | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/nginx.conf.sigil b/nginx.conf.sigil index fb44d30..623120a 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"}}