nixos/nginx: allow return to be an int

This commit is contained in:
Sandro Jäckel
2023-12-08 15:04:11 +01:00
parent 0b5beb5ac5
commit 78541e68eb
2 changed files with 2 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ with lib;
};
return = mkOption {
type = types.nullOr types.str;
type = with types; nullOr (oneOf [ str int ]);
default = null;
example = "301 http://example.com$request_uri";
description = lib.mdDoc ''