Commit graph

79 commits

Author SHA1 Message Date
Matthew Wild
0f493bd245 configmanager: Clearer errors when providing unexpected values after VirtualHost (fixes #1735, thanks arawaks) 2022-04-03 12:56:11 +01:00
Matthew Wild
a52c531dc5 configmanager: Add method to report loaded config files (part of #1729 fix) 2022-03-28 11:41:32 +01:00
Matthew Wild
c482490bff configmanager: Update error message to say 'VirtualHost' instead of 'Host' 2021-12-20 20:46:24 +00:00
Kim Alvefur
f563584fca core.configmanager: Handle nameprep validation errors 2019-11-02 13:56:13 +01:00
Kim Alvefur
4b69a96d83 core.configmanager: Ensure Hosts are given names
Prevents traceback from nameprep(nil)
2019-11-02 13:55:38 +01:00
Matthew Wild
7dfdcd5e09 configmanager: Pass through warnings from included files 2019-03-20 12:45:08 +00:00
Matthew Wild
1e6c93ec05 configmanager: Emit warning for duplicated config options 2019-03-20 12:20:51 +00:00
Matthew Wild
76ebc7778e configmanager: Add support for returning warnings 2019-03-20 12:19:43 +00:00
Matthew Wild
c9cc5d4a6e configmanager: Allow referencing environment variables in the config as as ENV_<name> 2018-09-03 17:45:30 +01:00
Kim Alvefur
7e64fa124a configmanager: Move firing of the 'config-reloaded' event into util.startup (fixes #1117) 2018-03-25 17:02:00 +02:00
Kim Alvefur
43b814a83b vairious: Add annotation when an empty environment is set [luacheck] 2018-02-28 20:06:26 +01:00
Kim Alvefur
ab47caa72f configmanager: Remove unused local [luacheck] 2017-05-28 23:40:26 +02:00
Emmanuel Gil Peyrot
eb231e9eab configmanager: Remove support for multiple parsers, fixes #852. 2017-05-27 15:32:28 +01:00
Kim Alvefur
1ecc3a7918 core: Split some very long lines [luacheck] 2017-03-04 17:49:48 +01:00
Kim Alvefur
27265c20e2 core.*: Remove use of module() function 2015-02-21 10:42:19 +01:00
Matthew Wild
f96b8f343a configmanager: Refactor function to avoid re-declaring local variable [luacheck] 2015-05-18 19:07:31 +01:00
Matthew Wild
3de0d3e049 configmanager: Rename unused function arguments [luacheck] 2015-05-18 19:07:06 +01:00
Matthew Wild
55f7842f8a configmanager: Rename variable to avoid name conflicts [luacheck] 2015-05-18 19:06:34 +01:00
Matthew Wild
0558bfbcb7 configmanager: Rename unused function argument [luacheck] 2015-05-18 19:05:26 +01:00
Matthew Wild
9dcab34382 configmanager: Remove unnecessary function localizations [luacheck] 2015-05-18 19:05:08 +01:00
Matthew Wild
c9c311b940 configmanager: Rename variable to avoid name conflict [luacheck] 2015-05-18 19:04:37 +01:00
Matthew Wild
7523668ad0 configmanager: Rename variable to avoid name conflict [luacheck] 2015-05-18 19:03:07 +01:00
Matthew Wild
3b8d61bf98 Merge 0.9->0.10 2014-07-31 07:11:54 +01:00
Matthew Wild
fa962495db configmanager: nameprep VirtualHost and Component names 2014-07-31 06:56:21 +01:00
Kim Alvefur
cb8d6cd008 Merge 0.9->0.10 2014-05-09 23:28:09 +02:00
Kim Alvefur
eeacb3cb6f configmanager: Delay importing LuaFileSystem until needed by an Include line 2014-05-09 19:59:49 +02:00
Kim Alvefur
084761b5ef core.configmanager: Move path utility functions into util.paths 2014-05-09 19:34:35 +02:00
Matthew Wild
8eb7b73968 Merge 0.9->trunk 2013-09-03 00:20:28 +01:00
Kim Alvefur
e7c0815019 configmanager: Fix checking of absolute paths on Windows 2013-08-30 18:51:55 +02:00
Florian Zeitz
1d833bb807 Remove all trailing whitespace 2013-08-09 17:48:21 +02:00
Matthew Wild
245f460991 configmanager: Some cleanup, remove unused variables and imports 2013-04-03 08:14:55 +01:00
Kim Alvefur
869da6c240 configmanager: Fix so unset variables are searched for in the global section 2013-03-23 04:14:52 +01:00
Matthew Wild
ee5a8c9543 configmanager, hostmanager, prosody: Almost complete removal of section-related code, and the infamous 'core' section. Still backwards-compatible with API users. 2013-03-22 11:21:24 +00:00
Matthew Wild
3c5b09b7f1 configmanager: Fix include of relative files via Include directive in config 2012-09-13 18:31:34 +01:00
Florian Zeitz
d49b9bc2ab Eliminate direct setfenv usage 2012-06-08 05:04:38 +02:00
Matthew Wild
76628c7453 configmanager: get(): Make section (core) optional (hurrah) 2011-12-10 17:21:19 +00:00
Waqas Hussain
e583053022 configmanager: resolve_relative_path: Improved detection of absolute paths on Windows. 2011-08-25 12:07:36 +05:00
Waqas Hussain
54c06fbaeb configmanager: Added rawget(). 2011-01-05 06:16:07 +05:00
Matthew Wild
519b72e6e9 configmanager: Filenames without a path are also relative to the config file path, not the current working directory 2010-12-21 22:25:54 +00:00
Matthew Wild
fbdb1c359a configmanager: Support for wildcards in Include directives 2010-12-20 14:06:32 +00:00
Matthew Wild
a64a22accd configmanager: Switch back to returning 'ok' to signal config load success - fixes config errors not being displayed 2010-12-18 23:15:58 +00:00
Matthew Wild
454c787201 configmanager: Change parser API again to pass a config table to insert settings to. Fixes Include(). (Thanks Zash/answerman) 2010-11-11 12:23:51 +00:00
Matthew Wild
a7d5c56e52 configmanager: Update Include and RunScript directives to support paths relative to the (current!) config file 2010-11-10 19:50:07 +00:00
Matthew Wild
385fd64606 prosody, configmanager, certmanager: Relocate prosody.resolve_relative_path() to configmanager, and update certmanager (the only user of this function) 2010-11-10 19:46:53 +00:00
Matthew Wild
dd33442407 configmanager: Atomic reloads, and some other internal changes to achieve this 2010-11-07 20:38:01 +00:00
Matthew Wild
7d4005fc7d configmanager: Allow VirtualHost/Component definitions to be followed by a table of config options 2010-10-08 03:19:20 +01:00
Matthew Wild
bab68f4fb2 configmanager: Remove dependency on eventmanager, and global 'prosody' object 2010-07-17 14:50:16 +01:00
Matthew Wild
c60b80b851 Merge configmanager->trunk 2010-05-05 19:01:14 +01:00
Matthew Wild
f050b61846 configmanager: Fix very wacky indentation 2010-05-04 23:11:41 +01:00
Matthew Wild
8b490b146e configmanager: Fix some wacky indentation 2010-05-04 23:07:49 +01:00