Remove reverse proxy from ZNC service

This commit is contained in:
Evie Litherland-Smith 2024-05-19 11:59:08 +01:00
parent fb6db061c1
commit 6d0384f4ae

View file

@ -1,5 +1,4 @@
{config, ...}: { {...}: {
imports = [./caddy.nix];
services.znc = { services.znc = {
enable = true; enable = true;
mutable = false; mutable = false;
@ -7,7 +6,7 @@
openFirewall = true; openFirewall = true;
config = { config = {
LoadModule = ["adminlog"]; LoadModule = ["adminlog"];
Listener.l = {Port = 5100;}; Listener.l = {Port = 6697;};
User.pixelifytica = { User.pixelifytica = {
Admin = true; Admin = true;
Pass.password = { Pass.password = {
@ -18,18 +17,12 @@
Network = { Network = {
liberachat = { liberachat = {
Server = "irc.libera.chat +6697"; Server = "irc.libera.chat +6697";
Chan = { Nick = "pixelifytica";
"#nixos" = {}; Chan = {};
"#nixos-wiki" = {};
};
JoinDelay = 2; 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}";
};
} }