1
0
Fork 0
forked from pub-solar/infra
pub-solar-infra-new/hosts/nachtigall/apps/nginx.nix

31 lines
569 B
Nix

{
config,
lib,
pkgs,
self,
...
}: let
acmeEmailAddress = "admins@pub.solar";
webserverGroup = "hakkonaut";
in {
services.nginx = {
enable = true;
group = webserverGroup;
enableReload = true;
proxyCachePath.cache = {
enable = true;
};
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
};
security.acme = {
acceptTerms = true;
defaults.email = acmeEmailAddress;
};
networking.firewall.allowedTCPPorts = [80 443];
}