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:
Jan Tojnar 2017-10-22 06:13:09 +02:00 committed by Robin Gloster
parent ff562459cc
commit 3c48a1e06d

View File

@ -142,10 +142,10 @@ with lib;
globalRedirect = mkOption {
type = types.nullOr types.str;
default = null;
example = http://newserver.example.org/;
example = "newserver.example.org";
description = ''
If set, all requests for this host are redirected permanently to
the given URL.
the given hostname.
'';
};