add nginx firewall stuff
This commit is contained in:
parent
9431224665
commit
2ea0070ca1
2 changed files with 8 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
{pkgs, ...}: {
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedTlsSettings = true;
|
||||
#recommendedTlsSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedBrotliSettings = true;
|
||||
recommendedGzipSettings = true;
|
||||
|
@ -13,4 +13,10 @@
|
|||
acceptTerms = true;
|
||||
defaults.email = "acme@kat.cafe";
|
||||
};
|
||||
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 80 443 ];
|
||||
allowedUDPPorts = [ 443 ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
};
|
||||
|
||||
networking.firewall = {
|
||||
# interfaces.podman0.allowedUDPPorts = [ 53 ];
|
||||
interfaces.podman0.allowedUDPPorts = [ 53 ];
|
||||
trustedInterfaces = [ "podman0" ];
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue