fix(web): add home redirects
This commit is contained in:
parent
6e2cc49183
commit
82c8d797ff
|
@ -9,7 +9,13 @@
|
||||||
recommendedGzipSettings = true;
|
recommendedGzipSettings = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
|
|
||||||
virtualHosts = {
|
virtualHosts = let
|
||||||
|
mkRedirect = host: {
|
||||||
|
locations."/".return = "307 https://${host}$request_uri";
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
};
|
||||||
|
in {
|
||||||
"_" = {
|
"_" = {
|
||||||
rejectSSL = true;
|
rejectSSL = true;
|
||||||
extraConfig = "return 444;";
|
extraConfig = "return 444;";
|
||||||
|
@ -34,6 +40,10 @@
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# redirections to home server
|
||||||
|
"src.514fpv.one" = mkRedirect "src.514fpv.io:2096";
|
||||||
|
"cloud.514fpv.one" = mkRedirect "cloud.514fpv.io:2096";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue