Move the static spec down

This commit is contained in:
Daoud Clarke 2023-10-11 21:15:23 +01:00
parent 040921836c
commit 0b380b50bf

View file

@ -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"}}