2023-12-23 21:29:18 +00:00
|
|
|
{ system, ... }:
|
|
|
|
let
|
|
|
|
portfolio = builtins.getFlake
|
2024-04-18 14:52:17 +00:00
|
|
|
"github:jrpotter/portfolio/ab01d079d1cd491ab7b44c98516cb290cf088761";
|
2023-12-23 21:29:18 +00:00
|
|
|
in
|
|
|
|
{
|
2024-04-12 20:10:56 +00:00
|
|
|
services.nginx = {
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
|
|
|
|
virtualHosts."www.jrpotter.com" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
serverAliases = [ "jrpotter.com" ];
|
|
|
|
locations."/" = {
|
|
|
|
root = portfolio.packages.${system}.app;
|
|
|
|
};
|
2023-12-23 21:29:18 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|