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

21 lines
329 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 = {
enable = true;
recommendedTlsSettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
recommendedProxySettings = true;
};
networking.firewall.allowedTCPPorts = [
80
443
2024-10-22 21:08:23 -04:00
];
}