nixos/server/nginx/default.nix

13 lines
377 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;
};
2023-05-09 07:48:48 +01:00
networking.firewall = { enable = true; allowedTCPPorts = [ 80 443 ]; };
}