24 lines
384 B
Nix
24 lines
384 B
Nix
|
{
|
||
|
flake,
|
||
|
config,
|
||
|
pkgs,
|
||
|
lib,
|
||
|
...
|
||
|
}: {
|
||
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||
|
|
||
|
services.nginx = {
|
||
|
enable = true;
|
||
|
|
||
|
recommendedOptimisation = true;
|
||
|
recommendedGzipSettings = true;
|
||
|
recommendedTlsSettings = true;
|
||
|
recommendedProxySettings = true;
|
||
|
|
||
|
defaultListenAddresses = [
|
||
|
"128.140.109.213"
|
||
|
"[2a01:4f8:c2c:b60::]"
|
||
|
];
|
||
|
};
|
||
|
}
|