summaryrefslogtreecommitdiff
path: root/nix/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'nix/README.md')
-rw-r--r--nix/README.md30
1 files changed, 20 insertions, 10 deletions
diff --git a/nix/README.md b/nix/README.md
index d92f910..bd6f096 100644
--- a/nix/README.md
+++ b/nix/README.md
@@ -107,7 +107,7 @@ in
recommendedProxySettings = true;
virtualHosts = {
- "${server_name}" = {
+ "${matrix_hostname}" = {
forceSSL = true;
enableACME = true;
@@ -118,20 +118,21 @@ in
ssl = true;
}
{
+ addr = "[::]";
+ port = 443;
+ ssl = true;
+ } {
addr = "0.0.0.0";
port = 8448;
ssl = true;
}
+ {
+ addr = "[::]";
+ port = 8448;
+ ssl = true;
+ }
];
- extraConfig = ''
- merge_slashes off;
- '';
-
- "${matrix_hostname}" = {
- forceSSL = true;
- enableACME = true;
-
locations."/_matrix/" = {
proxyPass = "http://backend_conduit$request_uri";
proxyWebsockets = true;
@@ -141,6 +142,15 @@ in
'';
};
+ extraConfig = ''
+ merge_slashes off;
+ '';
+ };
+
+ "${server_name}" = {
+ forceSSL = true;
+ enableACME = true;
+
locations."=/.well-known/matrix/server" = {
# Use the contents of the derivation built previously
alias = "${well_known_server}";
@@ -169,7 +179,7 @@ in
upstreams = {
"backend_conduit" = {
servers = {
- "localhost:${toString config.services.matrix-conduit.settings.global.port}" = { };
+ "[::1]:${toString config.services.matrix-conduit.settings.global.port}" = { };
};
};
};