mirror of
https://github.com/SaraSmiseth/prosody.git
synced 2025-05-04 05:00:39 +00:00
Fix arrays with multiple values (#14)
* fix arrays * Set pidfile in prosody.cfg.lua
This commit is contained in:
parent
ade86ee812
commit
357f4d4040
6 changed files with 22 additions and 10 deletions
|
@ -1,8 +1,10 @@
|
|||
local stringy = require "stringy"
|
||||
|
||||
contact_info = {
|
||||
abuse = { os.getenv("SERVER_CONTACT_INFO_ABUSE") };
|
||||
admin = { os.getenv("SERVER_CONTACT_INFO_ADMIN") };
|
||||
feedback = { os.getenv("SERVER_CONTACT_INFO_FEEDBACK") };
|
||||
sales = { os.getenv("SERVER_CONTACT_INFO_SALES") };
|
||||
security = { os.getenv("SERVER_CONTACT_INFO_SECURITY") };
|
||||
support = { os.getenv("SERVER_CONTACT_INFO_SUPPORT") };
|
||||
abuse = stringy.split(os.getenv("SERVER_CONTACT_INFO_ABUSE"), ", ");
|
||||
admin = stringy.split(os.getenv("SERVER_CONTACT_INFO_ADMIN"), ", ");
|
||||
feedback = stringy.split(os.getenv("SERVER_CONTACT_INFO_FEEDBACK"), ", ");
|
||||
sales = stringy.split(os.getenv("SERVER_CONTACT_INFO_SALES"), ", ");
|
||||
security = stringy.split(os.getenv("SERVER_CONTACT_INFO_SECURITY"), ", ");
|
||||
support = stringy.split(os.getenv("SERVER_CONTACT_INFO_SUPPORT"), ", ");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue