nixos/services.nginx: Fix globalRedirect example
Virtual host globalRedirect attribute accepts a hostname not a URL
09a9a472ee/nixos/modules/services/web-servers/nginx/default.nix (L167)
This commit is contained in:
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.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user