mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-12 05:16:25 +03:00
nginx: add listenAddresses
This allows the user to manually specify the addresses nginx shoud listen on, while still having the convinience to use the *SSL options and have the ports automatically applied
This commit is contained in:
parent
707f6106fe
commit
a4ca45acd7
2 changed files with 24 additions and 7 deletions
|
@ -43,9 +43,26 @@ with lib;
|
|||
IPv6 addresses must be enclosed in square brackets.
|
||||
Note: this option overrides <literal>addSSL</literal>
|
||||
and <literal>onlySSL</literal>.
|
||||
|
||||
If you only want to set the addresses manually and not
|
||||
the ports, take a look at <literal>listenAddresses</literal>
|
||||
'';
|
||||
};
|
||||
|
||||
listenAddresses = mkOption {
|
||||
type = with types; listOf str;
|
||||
|
||||
description = ''
|
||||
Listen addresses for this virtual host.
|
||||
Compared to <literal>listen</literal> this only sets the addreses
|
||||
and the ports are choosen automatically.
|
||||
|
||||
Note: This option overrides <literal>enableIPv6</literal>
|
||||
'';
|
||||
default = [];
|
||||
example = [ "127.0.0.1" "::1" ];
|
||||
};
|
||||
|
||||
enableACME = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue