coturn: Minor refactor view to use utility to generate URIs

Sunil:
 - Join the string in the template instead of the view.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Joseph Nuthalapati 2021-02-26 11:17:39 -08:00 committed by Sunil Mohan Adapa
parent ceacde67b9
commit 6e93633584
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -16,10 +16,8 @@
Use the following URLs to configure your communication server: Use the following URLs to configure your communication server:
{% endblocktrans %} {% endblocktrans %}
<pre>stun:{{ config.realm }}:3478?transport=udp <pre>{% for uri in config.uris %}{{ uri }}
stun:{{ config.realm }}:3478?transport=tcp {% endfor %}</pre>
turn:{{ config.realm }}:3478?transport=udp
turn:{{ config.realm }}:3478?transport=tcp</pre>
</p> </p>
<p> <p>
@ -27,6 +25,6 @@ turn:{{ config.realm }}:3478?transport=tcp</pre>
Use the following shared authentication secret: Use the following shared authentication secret:
{% endblocktrans %} {% endblocktrans %}
<pre>{{ config.static_auth_secret }}</pre> <pre>{{ config.shared_secret }}</pre>
</p> </p>
{% endblock %} {% endblock %}