1
0

Enable znc server

This commit is contained in:
clerie 2021-01-03 15:19:40 +01:00
parent fd730f837c
commit d1fd780e79
2 changed files with 30 additions and 0 deletions

View File

@ -8,6 +8,7 @@
./bubblesort.nix
./ip.nix
./meow.nix
./znc.nix
];
boot.loader.grub.enable = true;

29
hosts/web-2/znc.nix Normal file
View File

@ -0,0 +1,29 @@
{ ... }:
{
services.znc = {
enable = true;
mutable = true;
dataDir = "/var/lib/znc";
configFile = "/var/lib/znc/configs/znc.conf";
};
services.nginx.virtualHosts = {
"znc.clerie.de" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:1313";
};
};
};
clerie.nginx-port-forward = {
enable = true;
tcpPorts."6697" = {
host = "127.0.0.1";
port = 1311;
certName = "znc.clerie.de";
};
};
}