Skip to content

Setting config at run time #3858

Discussion options

You must be logged in to vote

it is possible to set/change any config variables that we set in ejabberd.yml file, from the code at run time

It is possible using a deprecated function, so this isn't a long-term solution.

(ejabberd@localhost)2>  ejabberd_option:websocket_ping_interval().
60000
(ejabberd@localhost)3>  ejabberd_config:set_option(websocket_ping_interval, 12334).
ok
(ejabberd@localhost)4>  ejabberd_option:websocket_ping_interval().                 
12334

The preferable solution is to edit ejabberd.yml and reload configuration.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by badlop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants