2023-03-05 22:51:30 +00:00
|
|
|
{
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedBrotliSettings = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
};
|
2023-03-06 08:55:28 +00:00
|
|
|
|
|
|
|
networking.firewall.interfaces =
|
|
|
|
let
|
|
|
|
nginxTCPPorts = [ 80 443 ];
|
|
|
|
in
|
|
|
|
{
|
|
|
|
"enp1s0".allowedTCPPorts = nginxTCPPorts;
|
|
|
|
"tailscale0".allowedTCPPorts = nginxTCPPorts;
|
|
|
|
};
|
2023-03-05 22:51:30 +00:00
|
|
|
}
|