nixos-config/hosts/falkenstein-1/modules/nginx/default.nix
2023-05-30 13:45:51 +02:00

23 lines
452 B
Nix

{ ... }:
{
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.nginx = {
enable = true;
recommendedTlsSettings = true;
recommendedProxySettings = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
virtualHosts."rfive.de" = {
enableACME = true;
forceSSL = true;
};
};
security.acme = {
acceptTerms = true;
defaults = {
email = "rouven@rfive.de";
};
};
}