diff --git a/matrix-module.nix b/matrix-module.nix index 1954a5f..4508a7d 100644 --- a/matrix-module.nix +++ b/matrix-module.nix @@ -141,6 +141,28 @@ in { "${cfg.hostname}" = { enableACME = true; forceSSL = true; + listen = [ + { + addr = "0.0.0.0"; + port = 80; + ssl = false; + } + { + addr = "0.0.0.0"; + port = 443; + ssl = true; + } + { + addr = "0.0.0.0"; + port = 8008; + ssl = false; + } + { + addr = "0.0.0.0"; + port = 8448; + ssl = true; + } + ]; locations."/" = { proxyPass = "http://localhost:${toString cfg.port}"; proxyWebsockets = true;