From fb6db061c17ca1f7aef105da9caa6a048ff07e64 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sun, 19 May 2024 11:49:35 +0100 Subject: [PATCH] Adjust znc remote proxy config --- services/znc.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/services/znc.nix b/services/znc.nix index c74b59fa..ebb61d22 100644 --- a/services/znc.nix +++ b/services/znc.nix @@ -7,7 +7,7 @@ openFirewall = true; config = { LoadModule = ["adminlog"]; - Listener.l = {Port = 6697;}; + Listener.l = {Port = 5100;}; User.pixelifytica = { Admin = true; Pass.password = { @@ -28,5 +28,8 @@ }; }; }; - services.caddy.virtualHosts."znc.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:${toString config.services.znc.config.Listener.l.Port}"; + services.caddy.virtualHosts."znc.xenia.me.uk:6697" = { + serverAliases = ["znc.xenia.me.uk" "xenia.me.uk:6697"]; + extraConfig = "reverse_proxy http://localhost:${toString config.services.znc.config.Listener.l.Port}"; + }; }