Remove reverse proxy from ZNC service
This commit is contained in:
parent
fb6db061c1
commit
6d0384f4ae
|
@ -1,5 +1,4 @@
|
|||
{config, ...}: {
|
||||
imports = [./caddy.nix];
|
||||
{...}: {
|
||||
services.znc = {
|
||||
enable = true;
|
||||
mutable = false;
|
||||
|
@ -7,7 +6,7 @@
|
|||
openFirewall = true;
|
||||
config = {
|
||||
LoadModule = ["adminlog"];
|
||||
Listener.l = {Port = 5100;};
|
||||
Listener.l = {Port = 6697;};
|
||||
User.pixelifytica = {
|
||||
Admin = true;
|
||||
Pass.password = {
|
||||
|
@ -18,18 +17,12 @@
|
|||
Network = {
|
||||
liberachat = {
|
||||
Server = "irc.libera.chat +6697";
|
||||
Chan = {
|
||||
"#nixos" = {};
|
||||
"#nixos-wiki" = {};
|
||||
};
|
||||
Nick = "pixelifytica";
|
||||
Chan = {};
|
||||
JoinDelay = 2;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
services.caddy.virtualHosts."znc.xenia.me.uk:6697" = {
|
||||
serverAliases = ["znc.xenia.me.uk" "xenia.me.uk:6697"];
|
||||
extraConfig = "reverse_proxy http://localhost:${toString config.services.znc.config.Listener.l.Port}";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue