web: fix matching etherpad location

To avoid /etherpad/ matched by fallback:
location ~ ^/([^/?&:'"]+)/(.*)$
This commit is contained in:
Yu Changyuan
2022-04-17 20:47:42 +08:00
committed by GitHub
parent 3afc1e3c12
commit eca5d161c9

View File

@@ -86,7 +86,7 @@ location = /xmpp-websocket {
{{ if .Env.ETHERPAD_URL_BASE }} {{ if .Env.ETHERPAD_URL_BASE }}
# Etherpad-lite # Etherpad-lite
location /etherpad/ { location ^~ /etherpad/ {
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade'; proxy_set_header Connection 'upgrade';