From f801bac10dd3d306a95cc0958dfefa6012cf01b0 Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 13 Sep 2023 15:00:47 -0700 Subject: [PATCH] Listen on 8008 and 8448 --- matrix-module.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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;