浏览代码

nginx: fix base domain configuration to allow serving custom content

pull/2671/head
Aine 3 年前
committed by GitHub
父节点
当前提交
ed5cf04306
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      roles/custom/matrix-nginx-proxy/templates/nginx/conf.d/matrix-base-domain.conf.j2

+ 3
- 0
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;


正在加载...
取消
保存