fix nix docs

I made some silly copy paste errors while writing this...
This commit is contained in:
Charles Hall 2023-01-08 12:44:59 -08:00
parent 19156c7bbf
commit 391beddaf4
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF

View file

@ -107,7 +107,7 @@ in
recommendedProxySettings = true; recommendedProxySettings = true;
virtualHosts = { virtualHosts = {
"${server_name}" = { "${matrix_hostname}" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
@ -124,14 +124,6 @@ in
} }
]; ];
extraConfig = ''
merge_slashes off;
'';
"${matrix_hostname}" = {
forceSSL = true;
enableACME = true;
locations."/_matrix/" = { locations."/_matrix/" = {
proxyPass = "http://backend_conduit$request_uri"; proxyPass = "http://backend_conduit$request_uri";
proxyWebsockets = true; proxyWebsockets = true;
@ -141,6 +133,15 @@ in
''; '';
}; };
extraConfig = ''
merge_slashes off;
'';
};
"${server_name}" = {
forceSSL = true;
enableACME = true;
locations."=/.well-known/matrix/server" = { locations."=/.well-known/matrix/server" = {
# Use the contents of the derivation built previously # Use the contents of the derivation built previously
alias = "${well_known_server}"; alias = "${well_known_server}";