From 6d0384f4aece22e5fd00689b62c104fd33c982f3 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sun, 19 May 2024 11:59:08 +0100 Subject: [PATCH] Remove reverse proxy from ZNC service --- services/znc.nix | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/services/znc.nix b/services/znc.nix index ebb61d22..f12eda02 100644 --- a/services/znc.nix +++ b/services/znc.nix @@ -1,5 +1,4 @@ -{config, ...}: { - imports = [./caddy.nix]; +{...}: { services.znc = { enable = true; mutable = false; @@ -7,7 +6,7 @@ openFirewall = true; config = { LoadModule = ["adminlog"]; - Listener.l = {Port = 5100;}; + Listener.l = {Port = 6697;}; User.pixelifytica = { Admin = true; Pass.password = { @@ -18,18 +17,12 @@ Network = { liberachat = { Server = "irc.libera.chat +6697"; - Chan = { - "#nixos" = {}; - "#nixos-wiki" = {}; - }; + Nick = "pixelifytica"; + Chan = {}; JoinDelay = 2; }; }; }; }; }; - 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}"; - }; }