mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 11:50:06 +00:00
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
```
(cherry picked from commit 320e4dbcc3)
This commit is contained in:
committed by
github-actions[bot]
parent
f0fa012b64
commit
483ce2b4e8
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user