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