diff --git a/modules/webstack.nix b/modules/webstack.nix index 770391a..76dda20 100644 --- a/modules/webstack.nix +++ b/modules/webstack.nix @@ -89,6 +89,7 @@ useACMEHost = "coolneng.duckdns.org"; forceSSL = true; listen = [ + # IPv4 { addr = "0.0.0.0"; port = 8448; @@ -99,14 +100,20 @@ port = 443; ssl = true; } + # IPv6 + { + addr = "[::]"; + port = 8448; + ssl = true; + } + { + addr = "[::]"; + port = 443; + ssl = true; + } ]; - locations."~ ^(/_matrix|/_synapse/client)" = { - proxyPass = "http://localhost:8008"; - extraConfig = '' - proxy_set_header X-Forwarded-For $remote_addr; - proxy_set_header X-Forwarded-Proto $scheme; - ''; - }; + locations."~ ^(/_matrix|/_synapse/client)".proxyPass = + "http://localhost:8008"; }; "element.coolneng.duckdns.org" = { useACMEHost = "coolneng.duckdns.org";