Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | core.configmanager: Rename Secret to Credential | Kim Alvefur | 2025-01-18 | 1 | -4/+6 |
| | | | | To match the variable name and what systemd calls them. | ||||
* | core.configmanager: Add function for getting secrets from separate files | Kim Alvefur | 2025-01-16 | 1 | -0/+14 |
| | | | | | | | | | | | | Idea is to enable easily retrieving of secret values from files outside of the config, e.g. via the method used by systemd credentials. CREDENTIALS_DIRECTORY is expected to be set by the process manager invoking Prosody, so being unset and unavailable from prosodyctl is going to be normal and a warning is reported in that case. Care will have to be taken to make it clear that prosodyctl check will not work with such values. An error is thrown if the directory is unavailable when running under Prosody. | ||||
* | core.configmanager: Add ways to read config values from files | Kim Alvefur | 2025-01-16 | 1 | -3/+34 |
| | | | | | | | | | | | | Inspired by something MattJ said Allows retrieving config values from files which are expected to be relative to the config directory, extending on the ENV_ method of retrieving config values from outside the config file. - FileLine retrieves the first line, stripping any trailing newline - FileContents reads the whole file - FileLines reads lines into an array | ||||
* | configmanager: Fix linter issues | Matthew Wild | 2023-12-08 | 1 | -2/+10 |
| | |||||
* | configmanager: Support for appending to existing config options | Matthew Wild | 2023-12-08 | 1 | -3/+56 |
| | | | | ...and some other useful operations | ||||
* | configmanager: Make _G accessible via `Lua` variable, deprecate direct access | Matthew Wild | 2023-12-08 | 1 | -1/+12 |
| | |||||
* | configmanager: Allow referencing previously-set options in the config file | Matthew Wild | 2023-12-08 | 1 | -0/+14 |
| | |||||
* | core: Prefix module imports with prosody namespace | Kim Alvefur | 2023-03-17 | 1 | -6/+6 |
| | |||||
* | core.configmanager: Remove COMPAT for old config format from 2013 | Kim Alvefur | 2022-05-29 | 1 | -12/+3 |
| | |||||
* | configmanager: Clearer errors when providing unexpected values after ↵ | Matthew Wild | 2022-04-03 | 1 | -0/+5 |
| | | | | VirtualHost (fixes #1735, thanks arawaks) | ||||
* | configmanager: Add method to report loaded config files (part of #1729 fix) | Matthew Wild | 2022-03-28 | 1 | -0/+7 |
| | |||||
* | configmanager: Update error message to say 'VirtualHost' instead of 'Host' | Matthew Wild | 2021-12-20 | 1 | -1/+1 |
| | |||||
* | core.configmanager: Handle nameprep validation errors | Kim Alvefur | 2019-11-02 | 1 | -2/+10 |
| | |||||
* | core.configmanager: Ensure Hosts are given names | Kim Alvefur | 2019-11-02 | 1 | -0/+6 |
| | | | | Prevents traceback from nameprep(nil) | ||||
* | configmanager: Pass through warnings from included files | Matthew Wild | 2019-03-20 | 1 | -2/+7 |
| | |||||
* | configmanager: Emit warning for duplicated config options | Matthew Wild | 2019-03-20 | 1 | -0/+16 |
| | |||||
* | configmanager: Add support for returning warnings | Matthew Wild | 2019-03-20 | 1 | -2/+3 |
| | |||||
* | configmanager: Allow referencing environment variables in the config as as ↵ | Matthew Wild | 2018-09-03 | 1 | -2/+5 |
| | | | | ENV_<name> | ||||
* | configmanager: Move firing of the 'config-reloaded' event into util.startup ↵ | Kim Alvefur | 2018-03-25 | 1 | -7/+0 |
| | | | | (fixes #1117) | ||||
* | vairious: Add annotation when an empty environment is set [luacheck] | Kim Alvefur | 2018-02-28 | 1 | -0/+1 |
| | |||||
* | configmanager: Remove unused local [luacheck] | Kim Alvefur | 2017-05-28 | 1 | -2/+2 |
| | |||||
* | configmanager: Remove support for multiple parsers, fixes #852. | Emmanuel Gil Peyrot | 2017-05-27 | 1 | -21/+6 |
| | |||||
* | core: Split some very long lines [luacheck] | Kim Alvefur | 2017-03-04 | 1 | -1/+2 |
| | |||||
* | core.*: Remove use of module() function | Kim Alvefur | 2015-02-21 | 1 | -7/+8 |
| | |||||
* | configmanager: Refactor function to avoid re-declaring local variable [luacheck] | Matthew Wild | 2015-05-18 | 1 | -9/+11 |
| | |||||
* | configmanager: Rename unused function arguments [luacheck] | Matthew Wild | 2015-05-18 | 1 | -3/+3 |
| | |||||
* | configmanager: Rename variable to avoid name conflicts [luacheck] | Matthew Wild | 2015-05-18 | 1 | -10/+10 |
| | |||||
* | configmanager: Rename unused function argument [luacheck] | Matthew Wild | 2015-05-18 | 1 | -1/+1 |
| | |||||
* | configmanager: Remove unnecessary function localizations [luacheck] | Matthew Wild | 2015-05-18 | 1 | -2/+1 |
| | |||||
* | configmanager: Rename variable to avoid name conflict [luacheck] | Matthew Wild | 2015-05-18 | 1 | -15/+12 |
| | |||||
* | configmanager: Rename variable to avoid name conflict [luacheck] | Matthew Wild | 2015-05-18 | 1 | -3/+3 |
| | |||||
* | Merge 0.9->0.10 | Matthew Wild | 2014-07-31 | 1 | -0/+5 |
|\ | |||||
| * | configmanager: nameprep VirtualHost and Component names | Matthew Wild | 2014-07-31 | 1 | -0/+5 |
| | | |||||
* | | Merge 0.9->0.10 | Kim Alvefur | 2014-05-09 | 1 | -1/+5 |
|\| | |||||
| * | configmanager: Delay importing LuaFileSystem until needed by an Include line | Kim Alvefur | 2014-05-09 | 1 | -1/+5 |
| | | |||||
* | | core.configmanager: Move path utility functions into util.paths | Kim Alvefur | 2014-05-09 | 1 | -35/+4 |
| | | |||||
* | | Merge 0.9->trunk | Matthew Wild | 2013-09-03 | 1 | -1/+1 |
|\| | |||||
| * | configmanager: Fix checking of absolute paths on Windows | Kim Alvefur | 2013-08-30 | 1 | -1/+1 |
| | | |||||
* | | Remove all trailing whitespace | Florian Zeitz | 2013-08-09 | 1 | -14/+14 |
|/ | |||||
* | configmanager: Some cleanup, remove unused variables and imports | Matthew Wild | 2013-04-03 | 1 | -5/+4 |
| | |||||
* | configmanager: Fix so unset variables are searched for in the global section | Kim Alvefur | 2013-03-23 | 1 | -1/+1 |
| | |||||
* | configmanager, hostmanager, prosody: Almost complete removal of ↵ | Matthew Wild | 2013-03-22 | 1 | -47/+30 |
| | | | | section-related code, and the infamous 'core' section. Still backwards-compatible with API users. | ||||
* | configmanager: Fix include of relative files via Include directive in config | Matthew Wild | 2012-09-13 | 1 | -3/+2 |
| | |||||
* | Eliminate direct setfenv usage | Florian Zeitz | 2012-06-08 | 1 | -5/+4 |
| | |||||
* | configmanager: get(): Make section (core) optional (hurrah) | Matthew Wild | 2011-12-10 | 1 | -0/+3 |
| | |||||
* | configmanager: resolve_relative_path: Improved detection of absolute paths ↵ | Waqas Hussain | 2011-08-25 | 1 | -1/+1 |
| | | | | on Windows. | ||||
* | configmanager: Added rawget(). | Waqas Hussain | 2011-01-05 | 1 | -0/+9 |
| | |||||
* | configmanager: Filenames without a path are also relative to the config file ↵ | Matthew Wild | 2010-12-21 | 1 | -2/+3 |
| | | | | path, not the current working directory | ||||
* | configmanager: Support for wildcards in Include directives | Matthew Wild | 2010-12-20 | 1 | -15/+49 |
| | |||||
* | configmanager: Switch back to returning 'ok' to signal config load success - ↵ | Matthew Wild | 2010-12-18 | 1 | -1/+1 |
| | | | | fixes config errors not being displayed |