Enable znc server
This commit is contained in:
parent
fd730f837c
commit
d1fd780e79
@ -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
29
hosts/web-2/znc.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user