Compare commits

..

2 commits

2 changed files with 13 additions and 17 deletions

View file

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

View file

@ -1,5 +1,5 @@
{config, ...}: {
imports = [./caddy.nix];
# imports = [./caddy.nix];
services.znc = {
enable = true;
mutable = false;
@ -16,17 +16,17 @@
Salt = "0vgs)x4KcEmGMK;56QVm";
};
Network = {
liberachat = {
Server = "irc.libera.chat +6697";
Chan = {
"#nixos" = {};
"#nixos-wiki" = {};
};
JoinDelay = 2;
# liberachat = {
# Server = "irc.libera.chat +6697";
# Chan = {
# "#nixos" = {};
# "#nixos-wiki" = {};
# };
# 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}";
}