Backend schema and migration modifications for allowing static hosts and locations

This commit is contained in:
Nikolaj Frey
2020-08-14 15:00:22 +10:00
parent d276381577
commit 1c302c6842
7 changed files with 85 additions and 16 deletions

View File

@@ -48,8 +48,14 @@ server {
proxy_http_version 1.1;
{% endif %}
# Proxy!
include conf.d/include/proxy.conf;
{% if static == 1 or static == true %}
alias {{ root_dir }}/$1;
try_files $uri /{{index_file}} =200;
{% else %}
# Proxy!
include conf.d/include/proxy.conf;
{% endif %}
}
{% endif %}