feat(hosts/luna): redirect blog to main domain
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 49s
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 49s
This commit is contained in:
parent
02246e3b5d
commit
5f173b8a2d
@ -18,16 +18,23 @@
|
|||||||
defaults.email = "price@orion-technologies.io";
|
defaults.email = "price@orion-technologies.io";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."blog.${fqdn}" = {
|
services.nginx.virtualHosts = {
|
||||||
forceSSL = true;
|
"blog.${fqdn}" = {
|
||||||
enableACME = true;
|
forceSSL = true;
|
||||||
root = inputs.blog.packages.${pkgs.system}.default;
|
enableACME = true;
|
||||||
locations."/".extraConfig = ''
|
globalRedirect = "price-hiller.com";
|
||||||
if ($request_uri ~ ^/(.*)\.html(\?|$)) {
|
};
|
||||||
return 302 /$1;
|
"price-hiller.com" = {
|
||||||
}
|
forceSSL = true;
|
||||||
try_files $uri $uri.html $uri/ =404;
|
enableACME = true;
|
||||||
'';
|
root = inputs.blog.packages.${pkgs.system}.default;
|
||||||
locations."/".index = "home.html";
|
locations."/".extraConfig = ''
|
||||||
|
if ($request_uri ~ ^/(.*)\.html(\?|$)) {
|
||||||
|
return 302 /$1;
|
||||||
|
}
|
||||||
|
try_files $uri $uri.html $uri/ =404;
|
||||||
|
'';
|
||||||
|
locations."/".index = "home.html";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user