1
0
nixfiles/hosts/web-2/znc.nix

30 lines
521 B
Nix
Raw Normal View History

2021-01-03 15:19:40 +01:00
{ ... }:
{
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";
};
};
}