hainich/nginx: let all empty subdomains 404

* make hainich.hacc.space the default virtualHost for nginx
if no host is running on that subdomain, this will be shown
* disable SSL, so no pesky SSL error for empty subdomains anymore
* remove lots of unneeded brackes and semicolons
This commit is contained in:
schweby 2021-03-18 19:04:00 +01:00
parent 94eafe59d2
commit 77c06c5509
No known key found for this signature in database
GPG key ID: 3A489DBB732B9614

View file

@ -12,14 +12,10 @@
services.nginx.virtualHosts = let services.nginx.virtualHosts = let
in { in {
# let all empty subdomains pointing to hainich return 404
"hainich.hacc.space" = { "hainich.hacc.space" = {
enableACME = true; default = true;
forceSSL = true; locations."/".return = "404";
locations = {
"/" = {
return = "404";
};
};
}; };
}; };