Fix manual build

This commit is contained in:
Sandro - 2024-04-25 11:13:24 +02:00
parent ca1b011888
commit 996fc4c9e2
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ in
locations = lib.mkOption {
type = with lib.types; attrsOf (submodule {
options.extraConfig = lib.mkOption { };
config.extraConfig = lib.mkIf cfg.setHSTSHeader (/* nginx */ ''
more_set_headers "Strict-Transport-Security: max-age=63072000; includeSubDomains; preload";
'' + cfg.commonServerConfig + cfgv.commonLocationsConfig);