added default host to nginx
This commit is contained in:
parent
9eff5502da
commit
735fece056
1 changed files with 4 additions and 0 deletions
|
|
@ -5,6 +5,10 @@
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
defaults.email = "dev@mc-fucker.cool";
|
defaults.email = "dev@mc-fucker.cool";
|
||||||
};
|
};
|
||||||
|
services.nginx.virtualHosts."default" = {
|
||||||
|
default = true;
|
||||||
|
locations."/".return = "301 https://google.com";
|
||||||
|
};
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
}
|
}
|
||||||
# vim: set et ts=2 sw=2 ai:
|
# vim: set et ts=2 sw=2 ai:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue