We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83ce795 commit d27fdb8Copy full SHA for d27fdb8
modules/nginx.nix
@@ -72,9 +72,9 @@ in
72
locations = lib.mkOption {
73
type = with lib.types; attrsOf (submodule {
74
options.extraConfig = lib.mkOption { };
75
- config.extraConfig = (if cfg.hstsHeader.enable then /* nginx */ ''
+ config.extraConfig = lib.optionalString cfg.hstsHeader.enable /* nginx */ ''
76
more_set_headers "Strict-Transport-Security: max-age=63072000; ${lib.optionalString cfg.hstsHeader.includeSubDomains "includeSubDomains; "}preload";
77
- '' else "") + cfg.commonServerConfig + cfgv.commonLocationsConfig;
+ '' + cfg.commonServerConfig + cfgv.commonLocationsConfig;
78
});
79
};
80
0 commit comments