forked from hacc/haccfiles
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:
parent
94eafe59d2
commit
77c06c5509
1 changed files with 3 additions and 7 deletions
|
@ -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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue