nixos/services.nginx: Fix globalRedirect example
Virtual host globalRedirect attribute accepts a hostname not a URL https://github.com/NixOS/nixpkgs/blob/09a9a472ee783b40c2a3dd287bbe9d3c60f8fc58/nixos/modules/services/web-servers/nginx/default.nix#L167
This commit is contained in:
committed by
Robin Gloster
parent
ff562459cc
commit
3c48a1e06d
@@ -142,10 +142,10 @@ with lib;
|
|||||||
globalRedirect = mkOption {
|
globalRedirect = mkOption {
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr types.str;
|
||||||
default = null;
|
default = null;
|
||||||
example = http://newserver.example.org/;
|
example = "newserver.example.org";
|
||||||
description = ''
|
description = ''
|
||||||
If set, all requests for this host are redirected permanently to
|
If set, all requests for this host are redirected permanently to
|
||||||
the given URL.
|
the given hostname.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user