2023-11-20 08:19:13 +00:00
|
|
|
{ ... }: {
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
|
|
services.caddy = {
|
|
|
|
enable = true;
|
|
|
|
email = "evie@xenia.me.uk";
|
2023-11-25 18:31:21 +00:00
|
|
|
virtualHosts."xenia.me.uk".extraConfig = ''
|
|
|
|
file_server * {
|
|
|
|
root /var/www/homesite/
|
|
|
|
}
|
2023-11-20 08:19:13 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
services.fail2ban = {
|
|
|
|
enable = true;
|
|
|
|
ignoreIP = [ "127.0.0.1/8" "::1" "192.168.1.0/16" ];
|
|
|
|
bantime-increment = { enable = true; };
|
|
|
|
};
|
|
|
|
}
|