28 lines
526 B
Nix
28 lines
526 B
Nix
|
{
|
||
|
inputs,
|
||
|
pkgs,
|
||
|
fqdn,
|
||
|
...
|
||
|
}:
|
||
|
{
|
||
|
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.${fqdn}" = {
|
||
|
forceSSL = true;
|
||
|
enableACME = true;
|
||
|
root = inputs.blog.packages.${pkgs.system}.default;
|
||
|
locations."/".index = "home.html";
|
||
|
};
|
||
|
}
|