From 320e4dbcc3e8b9f951ed56ae12da0cff2c17fa61 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Mon, 4 Jul 2022 18:36:53 +0200 Subject: [PATCH] nixos/nginx: fix broken listenAddresses example When using the example without the square brackets, nginx fails to start: ``` nginx-pre-start: nginx: [emerg] invalid port in "::1:80" of the "listen" directive in /nix/store/xyz-nginx.conf:29 nginx-pre-start: nginx: configuration file /nix/store/xyz-nginx.conf test failed ``` --- nixos/modules/services/web-servers/nginx/vhost-options.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-servers/nginx/vhost-options.nix b/nixos/modules/services/web-servers/nginx/vhost-options.nix index a9929297a248..61eef9f7ac96 100644 --- a/nixos/modules/services/web-servers/nginx/vhost-options.nix +++ b/nixos/modules/services/web-servers/nginx/vhost-options.nix @@ -60,7 +60,7 @@ with lib; Note: This option overrides enableIPv6 ''; default = []; - example = [ "127.0.0.1" "::1" ]; + example = [ "127.0.0.1" "[::1]" ]; }; enableACME = mkOption {