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
```
This commit is contained in:
Luflosi 2022-07-04 18:36:53 +02:00
parent faa274adf3
commit 320e4dbcc3
No known key found for this signature in database
GPG key ID: 4E41E29EDCC345D0

View file

@ -60,7 +60,7 @@ with lib;
Note: This option overrides <literal>enableIPv6</literal>
'';
default = [];
example = [ "127.0.0.1" "::1" ];
example = [ "127.0.0.1" "[::1]" ];
};
enableACME = mkOption {