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 = {
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}";
};
}