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
keep-around/233ffdd769b718ec977424d7edc9abc55a4d9c4d
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
1 changed files with 3 additions and 7 deletions

View File

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