nixos/server/nginx/default.nix

13 lines
355 B
Nix
Raw Normal View History

{ pkgs, lib, ... }:
{
services.nginx = {
enable = true;
package = pkgs.nginxMainline;
recommendedTlsSettings = lib.mkDefault true;
recommendedProxySettings = lib.mkDefault true;
recommendedOptimisation = lib.mkDefault true;
recommendedGzipSettings = lib.mkDefault true;
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
}