Mercurial > prosody-modules
diff mod_net_proxy/README.markdown @ 2961:33227efa2cdc
mod_net_proxy: Automatically listen on all mapped ports if proxy_ports was not configured
author | Pascal Mathis <mail@pascalmathis.com> |
---|---|
date | Wed, 28 Mar 2018 19:00:13 +0200 |
parents | 731fbefaabaf |
children | 504bb330e910 |
line wrap: on
line diff
--- a/mod_net_proxy/README.markdown Wed Mar 28 00:02:37 2018 +0200 +++ b/mod_net_proxy/README.markdown Wed Mar 28 19:00:13 2018 +0200 @@ -36,7 +36,13 @@ that should be exposed with PROXY protocol support: ```lua -proxy_ports = {15222, 15269} +--[[ + Hint: While you can manually override the ports this module is listening on with + the "proxy_ports" directive, it is highly recommended to not set it and instead + only configure the appropriate mappings with "proxy_port_mappings", which will + automatically start listening on all mapped ports. +]]-- + proxy_port_mappings = { [15222] = "c2s", [15269] = "s2s" @@ -84,7 +90,6 @@ ```lua c2s_ports = {5222} s2s_ports = {5269} -proxy_ports = {15222, 15269} proxy_port_mappings = { [15222] = "c2s", [15269] = "s2s"