matrix: Fix login redirect loop

Maybe/probably a problem with the hostname / IP snypase detected for the
request.
This commit is contained in:
Moritz 'e1mo' Fromm 2023-08-31 22:12:19 +02:00
parent 9c44d7d0fe
commit c054a81b1c
No known key found for this signature in database
GPG key ID: 1D5D79A439E787F1

View file

@ -43,9 +43,15 @@ in {
''; '';
# Forward all Matrix API calls to the synapse Matrix homeserver. A trailing slash # Forward all Matrix API calls to the synapse Matrix homeserver. A trailing slash
# *must not* be used here. # *must not* be used here.
locations."/_matrix".proxyPass = "http://[::1]:${toString matrixPort}"; locations."/_matrix" = {
proxyPass = "http://[::1]:${toString matrixPort}";
recommendedProxySettings = true;
};
# Forward requests for e.g. SSO and password-resets. # Forward requests for e.g. SSO and password-resets.
locations."/_synapse/client".proxyPass = "http://[::1]:${toString matrixPort}"; locations."/_synapse/client" = {
proxyPass = "http://[::1]:${toString matrixPort}";
recommendedProxySettings = true;
};
# # Allow public access to the synapse admin API # # Allow public access to the synapse admin API
# # The docs advise against leaving this open to just everyone. That's why this currently is commented out # # The docs advise against leaving this open to just everyone. That's why this currently is commented out
# # if admin things need to be done, it's required to SSH to the server and then direct all admin requests to # # if admin things need to be done, it's required to SSH to the server and then direct all admin requests to