Skip to content

Commit

Permalink
nginx: add missing option for doc gen
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Jan 7, 2024
1 parent 18dce20 commit 2434a23
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/nginx.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@ in
};

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

0 comments on commit 2434a23

Please sign in to comment.