We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0d0a5a3 + d27fdb8 commit a8ec859Copy full SHA for a8ec859
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 = lib.mkIf cfg.hstsHeader.enable (/* 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
- '' + cfg.commonServerConfig + cfgv.commonLocationsConfig);
+ '' + cfg.commonServerConfig + cfgv.commonLocationsConfig;
78
});
79
};
80
0 commit comments