[Pkg-xmpp-devel] Bug#1110205: prosody: Allow loading non-virtual host configuration from external files
Kim Alvefur
zash at zash.se
Thu Dec 4 00:11:43 GMT 2025
On Thu, Jul 31, 2025 at 10:59:49PM +0200, Elena “of Valhalla” wrote:
>In prosody.cfg.lua there is a line Include "conf.d/*.cfg.lua" which
>allows writing some configuration in an external file instead of
>chanching prosody.cfg.lua itself; however it is after the definition of
>the default VirtualHost, and thus any configuration loaded from there
>must either define a new VirtualHost, or will only apply to that
>virtualhost.
This seems to be based on a misunderstanding. Included files start out
with their own global section, same as the main config file.
It does not matter whether an Include directive is before or after a
VirtualHost, nor is the current VirtualHost inherited into Included
files, they need their own VirtualHost directive to change that context.
Hope this helps,
--
Kim "Zash" Alvefur
Prosody Developer
More information about the Pkg-xmpp-devel
mailing list