summaryrefslogtreecommitdiff
path: root/modules/nixos/mixins/nginx.nix
blob: 67d0c25754977e24f1b21c5a64f93b4be5c127f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ config, lib, ... }:
let
  cfg = config.mixins.nginx;
in
{
  options.mixins.nginx = {
    enable = lib.mkEnableOption "NGINX mixin";
  };

  config = lib.mkIf cfg.enable {
    services.nginx = {
      enable = true;

      recommendedBrotliSettings = true;
      recommendedGzipSettings = true;
      recommendedOptimisation = true;
      recommendedProxySettings = true;
      recommendedTlsSettings = true;
      recommendedZstdSettings = true;
    };
  };
}