ejabberd: Change BOSH port from 5280 to 5443

This is the default for new installs of ejabberd, starting with
version 18.09-1. For existing installs from previous versions, the
config must be upgraded to use the new port.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
James Valleroy 2018-11-22 21:01:20 -05:00 committed by Joseph Nuthalapati
parent bdefb7b863
commit 13646d58d5
No known key found for this signature in database
GPG Key ID: 5398F00A2FA43C35
2 changed files with 6 additions and 1 deletions

View File

@ -154,6 +154,11 @@ def upgrade_config():
(not current_version or current_version > MOD_IRC_DEPRECATED_VERSION): (not current_version or current_version > MOD_IRC_DEPRECATED_VERSION):
conf['modules'].pop('mod_irc') conf['modules'].pop('mod_irc')
# BOSH port was changed from 5280 to 5443.
for listen_port in conf['listen']:
if listen_port['port'] == 5280:
listen_port['port'] = 5443
# Write changes back to the file # Write changes back to the file
with open(EJABBERD_CONFIG, 'w') as file_handle: with open(EJABBERD_CONFIG, 'w') as file_handle:
ruamel.yaml.round_trip_dump(conf, file_handle) ruamel.yaml.round_trip_dump(conf, file_handle)

View File

@ -33,7 +33,7 @@ from plinth.utils import format_lazy
from .manifest import backup, clients from .manifest import backup, clients
version = 2 version = 3
managed_services = ['ejabberd'] managed_services = ['ejabberd']