···47 ];
48 description = ''
49 Listen addresses and ports for this virtual host.
50- <note><para>
051 This option overrides <literal>addSSL</literal>, <literal>forceSSL</literal> and <literal>onlySSL</literal>.
52- </para></note>
0000000000000053 '';
0054 };
5556 enableSSL = mkOption {
···47 ];
48 description = ''
49 Listen addresses and ports for this virtual host.
50+ <note>
51+ <para>
52 This option overrides <literal>addSSL</literal>, <literal>forceSSL</literal> and <literal>onlySSL</literal>.
53+ </para>
54+ <para>
55+ If you only want to set the addresses manually and not the ports, take a look at <literal>listenAddresses</literal>.
56+ </para>
57+ </note>
58+ '';
59+ };
60+61+ listenAddresses = mkOption {
62+ type = with types; nonEmptyListOf str;
63+64+ description = ''
65+ Listen addresses for this virtual host.
66+ Compared to <literal>listen</literal> this only sets the addreses
67+ and the ports are chosen automatically.
68 '';
69+ default = [ "*" ];
70+ example = [ "127.0.0.1" ];
71 };
7273 enableSSL = mkOption {