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}"; + }; }