summary refs log tree commit diff
path: root/nixos/modules/services/web-servers/nginx/vhost-options.nix
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2017-10-22 06:13:09 +0200
committerRobin Gloster <mail@glob.in>2017-10-22 15:38:08 +0200
commit3c48a1e06dc334c2229e441e0b96ecac709ac08c (patch)
tree74cc72209dafea15340416ebb696530ad740872c /nixos/modules/services/web-servers/nginx/vhost-options.nix
parentff562459ccbf61fa47c79bad59d8d0aad38f3bb3 (diff)
downloadnixpkgs-3c48a1e06dc334c2229e441e0b96ecac709ac08c.tar
nixpkgs-3c48a1e06dc334c2229e441e0b96ecac709ac08c.tar.gz
nixpkgs-3c48a1e06dc334c2229e441e0b96ecac709ac08c.tar.bz2
nixpkgs-3c48a1e06dc334c2229e441e0b96ecac709ac08c.tar.lz
nixpkgs-3c48a1e06dc334c2229e441e0b96ecac709ac08c.tar.xz
nixpkgs-3c48a1e06dc334c2229e441e0b96ecac709ac08c.tar.zst
nixpkgs-3c48a1e06dc334c2229e441e0b96ecac709ac08c.zip
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/modules/services/web-servers/nginx/vhost-options.nix')
-rw-r--r--nixos/modules/services/web-servers/nginx/vhost-options.nix4
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 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.
       '';
     };