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
location /static/ {
alias /var/lib/dokku/data/storage/mwmbl/;
alias /var/lib/dokku/data/storage/mwmbl-beta/;
}
## Root and stats served statically
location = / {
root /var/lib/dokku/data/storage/mwmbl;
root /var/lib/dokku/data/storage/mwmbl-beta;
try_files /index.html =404;
}
location ~ ^\/stats\/?$ {
root /var/lib/dokku/data/storage/mwmbl;
root /var/lib/dokku/data/storage/mwmbl-beta;
try_files /stats/index.html =404;
}