···1616 serverConfig = {
1717 options = {
1818 accept = mkOption {
1919- type = types.int;
2020- description = "On which port stunnel should listen for incoming TLS connections.";
1919+ type = types.either types.str types.int;
2020+ description = ''
2121+ On which [host:]port stunnel should listen for incoming TLS connections.
2222+ Note that unlike other softwares stunnel ipv6 address need no brackets,
2323+ so to listen on all IPv6 addresses on port 1234 one would use ':::1234'.
2424+ '';
2125 };
22262327 connect = mkOption {
···129133 type = with types; attrsOf (submodule serverConfig);
130134 example = {
131135 fancyWebserver = {
132132- enable = true;
133136 accept = 443;
134137 connect = 8080;
135138 cert = "/path/to/pem/file";