move firewall opening to nginx

This commit is contained in:
Noa Aarts 2024-06-18 19:58:50 +02:00
parent 194b13437b
commit 64b9027099
2 changed files with 9 additions and 4 deletions

View file

@ -312,14 +312,10 @@
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [
80 # http
443 # https
53317 # Localsend
7791 # Pixelflut
];
networking.firewall.allowedUDPPorts = [
80
443
53317
];
# Or disable the firewall altogether.

View file

@ -119,6 +119,15 @@ in
virtualHosts = hosts;
};
networking.firewall.allowedTCPPorts = [
80 # http
443 # https
];
networking.firewall.allowedUDPPorts = [
80 # http
443 # https
];
}
);
}