···16 serverConfig = {
17 options = {
18 accept = mkOption {
19- type = types.int;
20- description = "On which port stunnel should listen for incoming TLS connections.";
000021 };
2223 connect = mkOption {
···129 type = with types; attrsOf (submodule serverConfig);
130 example = {
131 fancyWebserver = {
132- enable = true;
133 accept = 443;
134 connect = 8080;
135 cert = "/path/to/pem/file";
···16 serverConfig = {
17 options = {
18 accept = mkOption {
19+ type = types.either types.str types.int;
20+ description = ''
21+ On which [host:]port stunnel should listen for incoming TLS connections.
22+ Note that unlike other softwares stunnel ipv6 address need no brackets,
23+ so to listen on all IPv6 addresses on port 1234 one would use ':::1234'.
24+ '';
25 };
2627 connect = mkOption {
···133 type = with types; attrsOf (submodule serverConfig);
134 example = {
135 fancyWebserver = {
0136 accept = 443;
137 connect = 8080;
138 cert = "/path/to/pem/file";