1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-24 18:16:21 +03:00

nixos/nginx: add return option to location

This commit is contained in:
Artemis Tosini 2019-03-13 17:29:13 +00:00
parent 54258e459f
commit fee854ed01
No known key found for this signature in database
GPG key ID: EE5227935FE3FF18
2 changed files with 11 additions and 1 deletions

View file

@ -64,6 +64,15 @@ with lib;
'';
};
return = mkOption {
type = types.nullOr types.str;
default = null;
example = "301 http://example.com$request_uri;";
description = ''
Adds a return directive, for e.g. redirections.
'';
};
extraConfig = mkOption {
type = types.lines;
default = "";