NixOS-Config/modules/system/services/server/nginx/default.nix

21 lines
352 B
Nix
Raw Normal View History

2024-10-22 21:08:23 -04:00
{ pkgs, config, ... }:
{
imports = [
./rtmp
./virtualhosts
];
2024-10-22 21:08:23 -04:00
services.nginx = {
2024-11-13 09:43:47 -05:00
enable = config.system.server.enable;
2024-10-22 21:08:23 -04:00
recommendedTlsSettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
recommendedProxySettings = true;
};
networking.firewall.allowedTCPPorts = [
80
443
2024-10-22 21:08:23 -04:00
];
}