mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
migrator: Add an escape hatch to allow arbitrary config options
Previously only SQL settings and the 'path' for internal storage could be set, and only for SQL and internal storage. input { type = "whatever"; config = { whatever_foobar = "something" } }
This commit is contained in:
parent
8a2e65d5b7
commit
2f2551e6d2
1 changed files with 5 additions and 0 deletions
|
@ -168,6 +168,11 @@ local function prepare_config(host, conf)
|
|||
elseif conf.type == "sql" then
|
||||
cm.set(host, "sql", conf);
|
||||
end
|
||||
if type(conf.config) == "table" then
|
||||
for option, value in pairs(conf.config) do
|
||||
cm.set(host, option, value);
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local function get_driver(host, conf)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue