pvv-nixos-config/hosts/ildkule/services/nginx/default.nix

30 lines
551 B
Nix
Raw Permalink Normal View History

{ config, values, ... }:
2022-12-17 21:51:43 +01:00
{
security.acme = {
acceptTerms = true;
2022-12-17 22:00:57 +01:00
defaults.email = "drift@pvv.ntnu.no";
2022-12-17 21:51:43 +01:00
};
services.nginx = {
enable = true;
enableReload = true;
defaultListenAddresses = [
values.hosts.ildkule.ipv4
"[${values.hosts.ildkule.ipv6}]"
"127.0.0.1"
"127.0.0.2"
"[::1]"
];
2022-12-17 21:51:43 +01:00
recommendedProxySettings = true;
recommendedTlsSettings = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
}