瀏覽代碼

Add map directive to the base of nginx.conf

This needs to be added for WebSocket upgrades to work properly (see doc:
http://nginx.org/en/docs/http/websocket.html)
pull/804/head
Béla Becker 5 年之前
父節點
當前提交
7bc9be95cb
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. +5
    -0
      roles/matrix-nginx-proxy/templates/nginx/nginx.conf.j2

+ 5
- 0
roles/matrix-nginx-proxy/templates/nginx/nginx.conf.j2 查看文件

@@ -45,6 +45,11 @@ http {
keepalive_timeout 65;

#gzip on;
{# Map directive needed for proxied WebSocket upgrades #}
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}

include /etc/nginx/conf.d/*.conf;
}

Loading…
取消
儲存