firewall rules for nginx

This commit is contained in:
Sakooooo 2024-12-31 19:11:57 +04:00
parent 674a2d3b52
commit 6fd60a404c
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -7,6 +7,7 @@ in {
options.void.server.nginx = { enable = mkEnableOption false; }; options.void.server.nginx = { enable = mkEnableOption false; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
networking.firewall.allowedTCPPorts = [ 80 443 ];
security.acme = { security.acme = {
acceptTerms = true; acceptTerms = true;
defaults.email = "Sayeko@proton.me"; defaults.email = "Sayeko@proton.me";