From 2cf3f8b5cbacb0151fd2c82ed7f73c41f1b9bbe6 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 17 Jul 2021 19:40:43 +0200 Subject: 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/prosody.cfg.lua.dist b/prosody.cfg.lua.dist index dfd26781..b9e88986 100644 --- a/prosody.cfg.lua.dist +++ b/prosody.cfg.lua.dist @@ -218,3 +218,12 @@ VirtualHost "localhost" -- --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. -- cgit v1.2.3