blob: e3cc47a58328172f1da2093cb9e67bd54607c439 (
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;
};
};
}
|