Change default port for ZNC service
This commit is contained in:
parent
149a583cd6
commit
9b7a3d6ffe
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
{config, ...}: {
|
||||||
imports = [./caddy.nix];
|
imports = [./caddy.nix];
|
||||||
services.znc = {
|
services.znc = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -7,6 +7,7 @@
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
config = {
|
config = {
|
||||||
LoadModule = ["adminlog"];
|
LoadModule = ["adminlog"];
|
||||||
|
Listener.l = {Port = 6697;};
|
||||||
User.pixelifytica = {
|
User.pixelifytica = {
|
||||||
Admin = true;
|
Admin = true;
|
||||||
Pass.password = {
|
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}";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue