Nextcloud Talk integration cleanup: unify secrets and signaling config

- Replace inline get_app_conf secrets in env.j2 with dedicated vars (TURN, signaling, internal)
- Correctly model signaling_servers as object {servers, secret} in spreed.yml
- Use UDP stun_turn port instead of TLS for transport=udp
- Add fallback logic for standalone Coturn role in main.yml
- Remove obsolete Greenlight section from BBB override

Ref: https://chatgpt.com/share/68d74e25-c068-800f-ae20-d0e34ac8ee12
This commit is contained in:
2025-09-27 04:39:11 +02:00
parent 7405883b48
commit a044028e03
4 changed files with 25 additions and 20 deletions

View File

@@ -1,23 +1,30 @@
plugin_configuration:
# Signaling (object: { servers: [...], secret: "..." })
- appid: "spreed"
configkey: "signaling_servers"
configvalue:
- server: "{{ NEXTCLOUD_TALK_URL }}"
verify: true
# optional:
alias: "primary"
servers:
- server: "{{ NEXTCLOUD_TALK_SIGNALING_URL }}"
verify: true
alias: "primary"
secret: "{{ NEXTCLOUD_TALK_SIGNALING_SECRET }}"
# STUN
# STUN (list of strings)
- appid: "spreed"
configkey: "stun_servers"
configvalue:
- "stun:{{ NEXTCLOUD_TALK_DOMAIN }}:{{ NEXTCLOUD_TALK_STUN_PORT }}"
# TURN with REST-Secret (used by Talk/Coturn)
# TURN with REST-Secret (list of objects)
- appid: "spreed"
configkey: "turn_servers"
configvalue:
- server: "turn:{{ NEXTCLOUD_TALK_DOMAIN }}:{{ NEXTCLOUD_TALK_STUN_PORT }}?transport=udp"
secret: "{{ applications | get_app_conf(application_id, 'credentials.talk_turn_secret') }}"
secret: "{{ NEXTCLOUD_TALK_TURN_SECRET }}"
ttl: 86400
protocols: "udp,tcp"
# Internal secret (still required as a separate key)
- appid: "spreed"
configkey: "internal_secret"
configvalue: "{{ NEXTCLOUD_TALK_INTERNAL_SECRET }}"