Skip to content

Commit

Permalink
nixos/services.nginx: Fix globalRedirect example
Browse files Browse the repository at this point in the history
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
(cherry picked from commit 3c48a1e)
  • Loading branch information
jtojnar authored and fpletz committed Oct 30, 2017
1 parent 56b9886 commit a0b50ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/services/web-servers/nginx/vhost-options.nix
Expand Up @@ -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.
'';
};

Expand Down

0 comments on commit a0b50ea

Please sign in to comment.