caddy user serverAliases for main landing page
This commit is contained in:
parent
fd5556906b
commit
4658d31f53
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue