nixos-config/modules/system/services/server/nginx/default.nix

23 lines
448 B
Nix
Raw Normal View History

{ pkgs, config, lib, ... }:
2024-10-22 21:08:23 -04:00
{
imports = [
./rtmp
./virtualhosts
];
2025-01-01 22:23:27 -05:00
config = lib.mkIf (config.system.server.enable || config.system.mailserver.enable) {
services.nginx = {
enable = true;
recommendedTlsSettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
recommendedProxySettings = true;
};
2024-10-22 21:08:23 -04:00
networking.firewall.allowedTCPPorts = [
80
443
];
};
2024-10-22 21:08:23 -04:00
}