ansible-role-prosody-master/templates/modules/mod_http_authentication.cfg.lua.j2

18 lines
466 B
Text
Raw Normal View History

2022-10-11 09:19:07 +02:00
{#
Prosody server template fragment for the `http_authentication` module.
For details, see:
https://modules.prosody.im/mod_http_authentication.html
#}
{% if cfg.http_credentials is defined %}
http_credentials = "{{ cfg.http_credentials }}"
{% endif %}
{% if cfg.unauthenticated_http_endpoints is defined %}
unauthenticated_http_endpoints = {
{% for endpoint in cfg.unauthenticated_http_endpoints %}
"{{ endpoint }}";
{% endfor %}
}
{% endif %}