dotfiles/nixos/boxes/nginx.nix

17 lines
327 B
Nix
Raw Normal View History

2022-12-19 09:09:08 +00:00
{
config,
pkgs,
...
}: {
networking.firewall.allowedTCPPorts = [80 443];
2021-06-02 20:42:32 +01:00
services.nginx = {
enable = true;
statusPage = true;
2024-01-16 22:08:28 +00:00
clientMaxBodySize = "512M";
2021-06-02 20:42:32 +01:00
recommendedTlsSettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
recommendedProxySettings = true;
};
}