forked from mirrors/nixpkgs
nginx module: Add extraConfig for locations
This commit is contained in:
parent
d5a097fdb6
commit
811f243ce6
|
@ -117,6 +117,7 @@ let
|
|||
location ${location} {
|
||||
${optionalString (config.proxyPass != null) "proxy_pass ${config.proxyPass};"}
|
||||
${optionalString (config.root != null) "root ${config.root};"}
|
||||
${config.extraConfig}
|
||||
}
|
||||
'') locations);
|
||||
in
|
||||
|
|
|
@ -27,6 +27,14 @@ with lib;
|
|||
Root directory for requests.
|
||||
'';
|
||||
};
|
||||
|
||||
extraConfig = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = ''
|
||||
These lines go to the end of the location verbatim.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue