From 9b7a3d6ffe36180082c3e96abb45bac585273fc7 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sun, 19 May 2024 11:17:21 +0100 Subject: [PATCH] Change default port for ZNC service --- services/znc.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/znc.nix b/services/znc.nix index 6cdc6e5a..c74b59fa 100644 --- a/services/znc.nix +++ b/services/znc.nix @@ -1,4 +1,4 @@ -{...}: { +{config, ...}: { imports = [./caddy.nix]; services.znc = { enable = true; @@ -7,6 +7,7 @@ openFirewall = true; config = { LoadModule = ["adminlog"]; + Listener.l = {Port = 6697;}; User.pixelifytica = { Admin = true; Pass.password = { @@ -27,5 +28,5 @@ }; }; }; - services.caddy.virtualHosts."znc.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:6697"; + services.caddy.virtualHosts."znc.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:${toString config.services.znc.config.Listener.l.Port}"; }