Price Hiller
c27bdf76cd
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 43s
36 lines
853 B
Nix
36 lines
853 B
Nix
{ inputs, pkgs, ... }:
|
|
{
|
|
services.nginx = {
|
|
enable = true;
|
|
recommendedProxySettings = true;
|
|
recommendedOptimisation = true;
|
|
recommendedGzipSettings = true;
|
|
recommendedTlsSettings = true;
|
|
};
|
|
|
|
security.acme = {
|
|
acceptTerms = true;
|
|
defaults.email = "price@orion-technologies.io";
|
|
};
|
|
|
|
services.nginx.virtualHosts = {
|
|
"blog.orion-technologies.io" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
globalRedirect = "price-hiller.com";
|
|
};
|
|
"price-hiller.com" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
root = inputs.blog.packages.${pkgs.system}.default;
|
|
locations."/".extraConfig = ''
|
|
if ($request_uri ~ ^/(.*)\.html(\?|$)) {
|
|
return 302 /$1;
|
|
}
|
|
try_files $uri $uri.html $uri/ =404;
|
|
'';
|
|
locations."/".index = "home.html";
|
|
};
|
|
};
|
|
}
|