mirror of
https://github.com/SaraSmiseth/prosody.git
synced 2025-05-04 05:00:39 +00:00
Make 04-server_contact_info.cfg.lua configurable with ENV variables. Fixes #4
This commit is contained in:
parent
a5c6d5ecef
commit
fd21384bdf
4 changed files with 32 additions and 20 deletions
|
@ -1,10 +1,10 @@
|
|||
local domain = os.getenv("DOMAIN")
|
||||
|
||||
contact_info = {
|
||||
abuse = { "xmpp:abuse@" .. domain };
|
||||
admin = { "xmpp:admin@" .. domain };
|
||||
feedback = { "xmpp:feedback@" .. domain };
|
||||
sales = { "xmpp:sales@" .. domain };
|
||||
security = { "xmpp:security@" .. domain };
|
||||
support = { "xmpp:support@" .. domain };
|
||||
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") };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue