caddy user serverAliases for main landing page

This commit is contained in:
Evie Litherland-Smith 2024-05-19 11:30:57 +01:00
parent fd5556906b
commit 4658d31f53

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 = {