diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2017-10-22 06:13:09 +0200 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2017-10-22 15:38:08 +0200 |
commit | 3c48a1e06dc334c2229e441e0b96ecac709ac08c (patch) | |
tree | 74cc72209dafea15340416ebb696530ad740872c /nixos | |
parent | ff562459ccbf61fa47c79bad59d8d0aad38f3bb3 (diff) |
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
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/web-servers/nginx/vhost-options.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/web-servers/nginx/vhost-options.nix b/nixos/modules/services/web-servers/nginx/vhost-options.nix index 8a04e07eeeac5..801601aafd9d6 100644 --- a/nixos/modules/services/web-servers/nginx/vhost-options.nix +++ b/nixos/modules/services/web-servers/nginx/vhost-options.nix @@ -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. ''; }; |