Static files hosted in different place
This commit is contained in:
parent
949f66e2b4
commit
4f0b1c44cb
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue