diff options
author | Kim Alvefur <zash@zash.se> | 2025-01-16 15:05:00 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2025-01-16 15:05:00 +0100 |
commit | 2f37c443b8df7263529424870f5e810dabc5fa59 (patch) | |
tree | 508041feed7bfb000ef947ff69b49c72e877f64e /CHANGES | |
parent | 76f00fc2e3efc9298abf496713b3dfef12b6f174 (diff) | |
download | prosody-2f37c443b8df7263529424870f5e810dabc5fa59.tar.gz prosody-2f37c443b8df7263529424870f5e810dabc5fa59.zip |
core.configmanager: Add ways to read config values from files
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
Diffstat (limited to 'CHANGES')
-rw-r--r-- | CHANGES | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -60,6 +60,7 @@ TRUNK - The configuration file now supports referring and appending to options previously set - Direct usage of the Lua API in the config file is deprecated, but can now be accessed via Lua.* instead +- Convenience functions for reading values from files ## Changes |