services: nginx redirect for matrix
This commit is contained in:
parent
094da6c1d6
commit
d9f63f46ba
@ -29,15 +29,16 @@ in {
|
|||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."= /.well-known/matrix/server".extraConfig = mkWellKnown serverConfig;
|
locations."= /.well-known/matrix/server".extraConfig = mkWellKnown serverConfig;
|
||||||
locations."= /.well-known/matrix/client".extraConfig = mkWellKnown clientConfig;
|
locations."= /.well-known/matrix/client".extraConfig = mkWellKnown clientConfig;
|
||||||
|
locations."/_matrix".proxyPass = "http://localhost:8008";
|
||||||
};
|
};
|
||||||
"${fqdn}" = {
|
"${fqdn}" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
locations."/_matrix".proxyPass = "http://localhost:8008";
|
||||||
|
locations."/_synapse/client".proxyPass = "http://localhost:8008";
|
||||||
locations."/".extraConfig = ''
|
locations."/".extraConfig = ''
|
||||||
return 404;
|
return 404;
|
||||||
'';
|
'';
|
||||||
locations."/_matrix".proxyPass = "http://[::1]:8008";
|
|
||||||
locations."/_synapse/client".proxyPass = "http://[::1]:8008";
|
|
||||||
};
|
};
|
||||||
# "element.${config.networking.domain}" = {
|
# "element.${config.networking.domain}" = {
|
||||||
# enableACME = true;
|
# enableACME = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user