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 semicolonskeep-around/233ffdd769b718ec977424d7edc9abc55a4d9c4d
parent
94eafe59d2
commit
77c06c5509
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue