From 3c48a1e06dc334c2229e441e0b96ecac709ac08c Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 22 Oct 2017 06:13:09 +0200 Subject: [PATCH] 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 --- nixos/modules/services/web-servers/nginx/vhost-options.nix | 4 ++-- 1 file 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 8a04e07eeea..801601aafd9 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. ''; };