Change default port for ZNC service

This commit is contained in:
Evie Litherland-Smith 2024-05-19 11:17:21 +01:00
parent 149a583cd6
commit 9b7a3d6ffe

View file

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