Merge pull request #99003 from martinetd/stunnel-doc

authored by

Daniel Schaefer and committed by
GitHub
d4905b13 6fc9aca0

+6 -3
+6 -3
nixos/modules/services/networking/stunnel.nix
··· 16 16 serverConfig = { 17 17 options = { 18 18 accept = mkOption { 19 - type = types.int; 20 - description = "On which port stunnel should listen for incoming TLS connections."; 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 + ''; 21 25 }; 22 26 23 27 connect = mkOption { ··· 129 133 type = with types; attrsOf (submodule serverConfig); 130 134 example = { 131 135 fancyWebserver = { 132 - enable = true; 133 136 accept = 443; 134 137 connect = 8080; 135 138 cert = "/path/to/pem/file";