move firewall opening to nginx
This commit is contained in:
parent
194b13437b
commit
64b9027099
2 changed files with 9 additions and 4 deletions
|
|
@ -312,14 +312,10 @@
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
80 # http
|
|
||||||
443 # https
|
|
||||||
53317 # Localsend
|
53317 # Localsend
|
||||||
7791 # Pixelflut
|
7791 # Pixelflut
|
||||||
];
|
];
|
||||||
networking.firewall.allowedUDPPorts = [
|
networking.firewall.allowedUDPPorts = [
|
||||||
80
|
|
||||||
443
|
|
||||||
53317
|
53317
|
||||||
];
|
];
|
||||||
# Or disable the firewall altogether.
|
# Or disable the firewall altogether.
|
||||||
|
|
|
||||||
|
|
@ -119,6 +119,15 @@ in
|
||||||
|
|
||||||
virtualHosts = hosts;
|
virtualHosts = hosts;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
80 # http
|
||||||
|
443 # https
|
||||||
|
];
|
||||||
|
networking.firewall.allowedUDPPorts = [
|
||||||
|
80 # http
|
||||||
|
443 # https
|
||||||
|
];
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue