matrix: Fix login redirect loop
Maybe/probably a problem with the hostname / IP snypase detected for the request.
This commit is contained in:
parent
9c44d7d0fe
commit
c054a81b1c
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue