Set locations priority for matrix reverse proxy

This commit is contained in:
yuri 2023-10-07 02:42:00 +02:00
parent 8bb1c5853b
commit f0368c9a61

View file

@ -17,6 +17,10 @@
} }
]; ];
locations = { locations = {
"~ ^/(client/|_matrix/client/unstable/org.matrix.msc3575/sync)" = {
proxyPass = "http://127.0.0.1:8009";
priority = 999;
};
"~ ^(/_matrix|/_synapse/client)" = { "~ ^(/_matrix|/_synapse/client)" = {
proxyPass = "http://127.0.0.1:8008"; proxyPass = "http://127.0.0.1:8008";
extraConfig = '' extraConfig = ''
@ -25,9 +29,6 @@
client_max_body_size ${config.services.matrix-synapse.settings.max_upload_size}; client_max_body_size ${config.services.matrix-synapse.settings.max_upload_size};
''; '';
}; };
"~ ^/(client/|_matrix/client/unstable/org.matrix.msc3575/sync)" = {
proxyPass = "http://127.0.0.1:8009";
};
}; };
extraConfig = '' extraConfig = ''
listen 0.0.0.0:8443 http2 ssl proxy_protocol; listen 0.0.0.0:8443 http2 ssl proxy_protocol;