mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 05:07:42 +03:00
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
This commit is contained in:
parent
76f00fc2e3
commit
2f37c443b8
4 changed files with 37 additions and 4 deletions
1
CHANGES
1
CHANGES
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue