Fix how contact info vars are set
This commit is contained in:
parent
10ae1db100
commit
62c957b8f3
2 changed files with 6 additions and 6 deletions
|
@ -6,7 +6,7 @@ You can deploy a test instance using `Vagrantfile` attached to the role. This ro
|
|||
# Run in production
|
||||
To run this role in production, do not forget to set your DNS as explained [here](./DNS_configuration.md) and to change all vars from files in `default/` to what you need.
|
||||
|
||||
The role's defaults should be already dpeloying fully funcitonal and modern XMPP Server. It allows to add/remove any additional module (whether core or community).
|
||||
The role's defaults should be already dpeloying fully functional and modern XMPP Server. It allows to add/remove any additional module (whether core or community).
|
||||
|
||||
# Run test in Vagrant
|
||||
To have it work using vagrant:
|
||||
|
|
|
@ -224,11 +224,11 @@ prosody_modules:
|
|||
description: 'Provides contact addresses.'
|
||||
module_enabled: 'true'
|
||||
extra_options:
|
||||
- 'contact_info = {'
|
||||
- 'admin = { "mailto:{{ prosody_admins }}", "xmpp:{{ prosody_admins }}" };'
|
||||
- 'abuse = { "mailto:{{ prosody_abuse_info }}", "xmpp:{{ prosody_abuse_info }}" };'
|
||||
- 'support = { "mailto:{{ prosody_contact_info }}", "xmpp:{{ prosody_contact_info }}" };'
|
||||
- '};'
|
||||
- 'contact_info = {'
|
||||
- 'admin = { {% for email in prosody_admins.split(",") %}"mailto:{{ email.strip() }}", "xmpp:{{ email.strip() }}"{% if not loop.last %}, {% endif %}{% endfor %} };'
|
||||
- 'abuse = { {% for email in prosody_abuse_info.split(",") %}"mailto:{{ email.strip() }}", "xmpp:{{ email.strip() }}"{% if not loop.last %}, {% endif %}{% endfor %} };'
|
||||
- 'support = { "mailto:{{ prosody_contact_info }}", "xmpp:{{ prosody_contact_info }}" };'
|
||||
- '};'
|
||||
|
||||
- name: 'turn_external'
|
||||
description: 'Audio/video call relay (STUN/TURN)'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue