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

Reply via email to