prosody.cfg.lua.dist: Warn about adding settings at the end of the file
authorKim Alvefur <zash@zash.se>
Sat, 17 Jul 2021 19:40:43 +0200
changeset 12280 7c5e6ad3d778
parent 12279 13624194984b
child 12281 e921295e934c
prosody.cfg.lua.dist: Warn about adding settings at the end of the file It is very often a confusing mistake that leads to support questions
prosody.cfg.lua.dist
--- a/prosody.cfg.lua.dist	Sat Feb 05 01:33:46 2022 +0100
+++ b/prosody.cfg.lua.dist	Sat Jul 17 19:40:43 2021 +0200
@@ -218,3 +218,12 @@
 --
 --Component "gateway.example.com"
 --	component_secret = "password"
+
+
+---------- End of the Prosody Configuration file ----------
+-- You usually **DO NOT** want to add settings here at the end, as they would
+-- only apply to the last defined VirtualHost or Component.
+--
+-- Settings for the global section should go higher up, before the first
+-- VirtualHost or Component line, while settings intended for specific hosts
+-- should go under the corresponding VirtualHost or Component line.