mirror of
https://github.com/SaraSmiseth/prosody.git
synced 2025-05-06 06:00:38 +00:00
Move remaining defaults from entrypoint script to cfg.lua files.
This commit is contained in:
parent
5d73416ac4
commit
6a269445d7
5 changed files with 24 additions and 25 deletions
|
@ -1,10 +1,18 @@
|
|||
local stringy = require "stringy"
|
||||
|
||||
local domain = os.getenv("DOMAIN")
|
||||
local abuse = os.getenv("SERVER_CONTACT_INFO_ABUSE") or "xmpp:abuse@" .. domain
|
||||
local admin = os.getenv("SERVER_CONTACT_INFO_ADMIN") or "xmpp:admin@" .. domain
|
||||
local feedback = os.getenv("SERVER_CONTACT_INFO_FEEDBACK") or "xmpp:feedback@" .. domain
|
||||
local sales = os.getenv("SERVER_CONTACT_INFO_SALES") or "xmpp:sales@" .. domain
|
||||
local security = os.getenv("SERVER_CONTACT_INFO_SECURITY") or "xmpp:security@" .. domain
|
||||
local support = os.getenv("SERVER_CONTACT_INFO_SUPPORT") or "xmpp:support@" .. domain
|
||||
|
||||
contact_info = {
|
||||
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"), ", ");
|
||||
abuse = stringy.split(abuse, ", ");
|
||||
admin = stringy.split(admin, ", ");
|
||||
feedback = stringy.split(feedback, ", ");
|
||||
sales = stringy.split(sales, ", ");
|
||||
security = stringy.split(security, ", ");
|
||||
support = stringy.split(support, ", ");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue