Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Use app specific static locations

Daoud Clarke2ddfec9005c8
diff --git a/nginx.conf.sigil b/nginx.conf.sigil
index e3ab7b0..0d97b27 100644
--- a/nginx.conf.sigil
+++ b/nginx.conf.sigil
@@ -100,12 +100,12 @@ server {
## Static file hosting
location /static/ {
- alias /var/lib/dokku/data/storage/mwmbl-org/;
+ alias /var/lib/dokku/data/storage/{{ $.APP }}/;
}
## Stats served statically
location ~ ^\/stats\/?$ {
- root /var/lib/dokku/data/storage/mwmbl-org;
+ root /var/lib/dokku/data/storage/{{ $.APP }};
try_files /stats/index.html =404;
}