nixos-config/modules/system/services/server/nginx/default.nix
2024-11-13 09:43:47 -05:00

20 lines
352 B
Nix

{ pkgs, config, ... }:
{
imports = [
./rtmp
./virtualhosts
];
services.nginx = {
enable = config.system.server.enable;
recommendedTlsSettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
recommendedProxySettings = true;
};
networking.firewall.allowedTCPPorts = [
80
443
];
}