nixos/server/nginx/default.nix
Evie Litherland-Smith d2baf077e8 Add adguard home and initial nginx config
nginx currently only forwards to adguard, todo add more
2023-05-07 18:20:26 +01:00

13 lines
355 B
Nix

{ 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 ];
}