Compare commits

..

2 commits

2 changed files with 13 additions and 17 deletions

View file

@ -3,15 +3,11 @@
services.caddy = { services.caddy = {
enable = true; enable = true;
email = "evie@xenia.me.uk"; email = "evie@xenia.me.uk";
virtualHosts = { virtualHosts."xenia.me.uk" = {
"xenia.me.uk".extraConfig = '' serverAliases = ["www.xenia.me.uk"];
extraConfig = ''
redir https://www.xenia.me.uk redir https://www.xenia.me.uk
''; '';
"www.xenia.me.uk".extraConfig = ''
file_server * {
root /var/www/xenia.me.uk/
}
'';
}; };
}; };
services.fail2ban = { services.fail2ban = {

View file

@ -1,5 +1,5 @@
{config, ...}: { {config, ...}: {
imports = [./caddy.nix]; # imports = [./caddy.nix];
services.znc = { services.znc = {
enable = true; enable = true;
mutable = false; mutable = false;
@ -16,17 +16,17 @@
Salt = "0vgs)x4KcEmGMK;56QVm"; Salt = "0vgs)x4KcEmGMK;56QVm";
}; };
Network = { Network = {
liberachat = { # liberachat = {
Server = "irc.libera.chat +6697"; # Server = "irc.libera.chat +6697";
Chan = { # Chan = {
"#nixos" = {}; # "#nixos" = {};
"#nixos-wiki" = {}; # "#nixos-wiki" = {};
}; # };
JoinDelay = 2; # JoinDelay = 2;
}; # };
}; };
}; };
}; };
}; };
services.caddy.virtualHosts."znc.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:${toString config.services.znc.config.Listener.l.Port}"; # services.caddy.virtualHosts."znc.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:${toString config.services.znc.config.Listener.l.Port}";
} }