2023-10-28 13:31:44 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
self,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
acmeEmailAddress = "admins@pub.solar";
|
|
|
|
webserverGroup = "hakkonaut";
|
|
|
|
in {
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
group = webserverGroup;
|
|
|
|
enableReload = true;
|
2023-10-28 19:12:33 +00:00
|
|
|
proxyCachePath.cache = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2023-10-29 02:37:22 +00:00
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
2023-10-28 19:42:01 +00:00
|
|
|
recommendedProxySettings = true;
|
2023-10-29 02:37:22 +00:00
|
|
|
recommendedTlsSettings = true;
|
2023-10-28 13:31:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
security.acme = {
|
|
|
|
acceptTerms = true;
|
2023-10-28 14:25:48 +00:00
|
|
|
defaults.email = acmeEmailAddress;
|
2023-10-28 13:31:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [80 443];
|
|
|
|
}
|