2023-12-03 02:17:44 -06:00
|
|
|
{ config, pkgs, system, personal-blog, ... }:
|
2023-10-30 08:50:46 -05:00
|
|
|
let
|
|
|
|
blog-host = "blog.orion-technologies.io";
|
|
|
|
in
|
2023-10-27 23:02:52 -05:00
|
|
|
{
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
};
|
|
|
|
security.acme = {
|
|
|
|
acceptTerms = true;
|
|
|
|
defaults.email = "price@orion-technologies.io";
|
|
|
|
};
|
2023-10-30 08:50:46 -05:00
|
|
|
|
|
|
|
services.nginx.virtualHosts."${blog-host}" = {
|
2023-12-03 02:17:44 -06:00
|
|
|
forceSSL = true;
|
2023-10-30 08:50:46 -05:00
|
|
|
enableACME = true;
|
2023-12-03 02:17:44 -06:00
|
|
|
root = personal-blog.packages.${pkgs.system}.default;
|
2023-10-30 08:50:46 -05:00
|
|
|
locations."/".index = "home.html";
|
|
|
|
};
|
|
|
|
|
2023-10-27 23:02:52 -05:00
|
|
|
}
|