This module allows to load/unload external components after they have been added/removed to a configuration file. It is necessary to explicitly initiate a reload on Prosody either via prosodyctl reload or config:reload().
If Prosody has started with this configuration file:
"example.com"
VirtualHost = "internal_plain"
authentication
"a.example.com"
Component = "a"
component_secret
"b.example.com"
Component = "b" component_secret
And the file has changed manually or dynamically to:
"example.com"
VirtualHost = "internal_plain"
authentication
"a.example.com"
Component = "a"
component_secret
"c.example.com"
Component = "c" component_secret
Then, the following actions will occur if this module is loaded:
If Prosody has started with this configuration file:
"example.com"
VirtualHost = "internal_plain"
authentication
"a.example.com"
Component = "a" component_secret
And the file has changed manually or dynamically to:
"example.com"
VirtualHost = "internal_plain"
authentication
"a.example.com"
Component = "a"
component_secret
"newexample.com"
VirtualHost = "internal_plain"
authentication
"a.newexample.com"
Component = "a" component_secret
Then, the following actions will occur if this module is loaded:
Copy the module folder into your Prosody modules directory. Place the module between your enabled modules either into the global or a vhost section.
No configuration directives are needed
With the plugin installer in Prosody 0.12 you can use:
sudo prosodyctl install --server=https://modules.prosody.im/rocks/ mod_reload_components
For earlier versions see the documentation for installing 3rd party modules