Bladeren bron
Merge pull request #2671 from etkecc/patch-223
nginx: fix base domain configuration to allow serving custom content
pull/2676/head
Slavi Pantaleev
3 jaren geleden
committed by
GitHub
bovenliggende
commit
99f6982287
Geen bekende sleutel gevonden voor deze handtekening in de database
GPG sleutel-ID: 4AEE18F83AFDEB23
1 gewijzigde bestanden met
toevoegingen van 3 en
0 verwijderingen
-
roles/custom/matrix-nginx-proxy/templates/nginx/conf.d/matrix-base-domain.conf.j2
|
|
|
@@ -1,7 +1,10 @@ |
|
|
|
#jinja2: lstrip_blocks: "True" |
|
|
|
|
|
|
|
{% macro render_vhost_directives() %} |
|
|
|
absolute_redirect off; |
|
|
|
root {{ matrix_nginx_proxy_data_path_in_container if matrix_nginx_proxy_enabled else matrix_nginx_proxy_data_path }}{{ matrix_nginx_proxy_data_path_extension }}; |
|
|
|
index index.html index.htm; |
|
|
|
try_files $uri $uri/ =404; |
|
|
|
|
|
|
|
gzip on; |
|
|
|
gzip_types text/plain application/json; |
|
|
|
|