summaryrefslogtreecommitdiff
path: root/modules/nixos/server/mixins/nginx.nix
blob: 11306a21957dc82eb9b4fa7dc84a3e922d910537 (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.server.mixins.nginx;
in
{
  options.server.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;
    };
  };
}