Make s2s port configurable in test runner
This commit is contained in:
parent
c2e6ce0f04
commit
e8576c23c5
|
@ -340,7 +340,7 @@ listen:
|
||||||
shaper: c2s_shaper
|
shaper: c2s_shaper
|
||||||
access: c2s
|
access: c2s
|
||||||
-
|
-
|
||||||
port: 5269
|
port: @@s2s_port@@
|
||||||
module: ejabberd_s2s_in
|
module: ejabberd_s2s_in
|
||||||
-
|
-
|
||||||
port: @@web_port@@
|
port: @@web_port@@
|
||||||
|
|
|
@ -31,6 +31,7 @@ init_config(Config) ->
|
||||||
{ok, CfgContentTpl} = file:read_file(ConfigPathTpl),
|
{ok, CfgContentTpl} = file:read_file(ConfigPathTpl),
|
||||||
CfgContent = process_config_tpl(CfgContentTpl, [
|
CfgContent = process_config_tpl(CfgContentTpl, [
|
||||||
{c2s_port, 5222},
|
{c2s_port, 5222},
|
||||||
|
{s2s_port, 5269},
|
||||||
{web_port, 5280},
|
{web_port, 5280},
|
||||||
{mysql_server, <<"localhost">>},
|
{mysql_server, <<"localhost">>},
|
||||||
{mysql_port, 3306},
|
{mysql_port, 3306},
|
||||||
|
|
Loading…
Reference in New Issue