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:
parent
54258e459f
commit
fee854ed01
2 changed files with 11 additions and 1 deletions
|
@ -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 = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue