Make s2s port configurable in test runner

This commit is contained in:
Paweł Chmielowski 2015-04-20 16:16:30 +02:00
parent c2e6ce0f04
commit e8576c23c5
2 changed files with 2 additions and 1 deletions

View File

@ -340,7 +340,7 @@ listen:
shaper: c2s_shaper
access: c2s
-
port: 5269
port: @@s2s_port@@
module: ejabberd_s2s_in
-
port: @@web_port@@

View File

@ -31,6 +31,7 @@ init_config(Config) ->
{ok, CfgContentTpl} = file:read_file(ConfigPathTpl),
CfgContent = process_config_tpl(CfgContentTpl, [
{c2s_port, 5222},
{s2s_port, 5269},
{web_port, 5280},
{mysql_server, <<"localhost">>},
{mysql_port, 3306},