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