Static files hosted in different place

This commit is contained in:
Daoud Clarke 2023-10-27 07:26:35 +01:00
parent 949f66e2b4
commit 4f0b1c44cb

View file

@ -100,17 +100,17 @@ server {
## Static file hosting ## Static file hosting
location /static/ { location /static/ {
alias /var/lib/dokku/data/storage/mwmbl/; alias /var/lib/dokku/data/storage/mwmbl-beta/;
} }
## Root and stats served statically ## Root and stats served statically
location = / { location = / {
root /var/lib/dokku/data/storage/mwmbl; root /var/lib/dokku/data/storage/mwmbl-beta;
try_files /index.html =404; try_files /index.html =404;
} }
location ~ ^\/stats\/?$ { location ~ ^\/stats\/?$ {
root /var/lib/dokku/data/storage/mwmbl; root /var/lib/dokku/data/storage/mwmbl-beta;
try_files /stats/index.html =404; try_files /stats/index.html =404;
} }