Files
computer-playbook/roles/web-app-nextcloud/vars/plugins/spreed.yml
Kevin Veen-Birkenbach 0d99c7f297 Nextcloud: refactor Talk → HPB, switch to bridge mode, and template cleanups
- Change Talk (HPB) network_mode from host → bridge and drop TURN relay range mapping
- Remove obsolete nginx restart handler; rely on 'docker compose up' notify
- Fix spreed task condition to use HPB standalone flag
- docker-compose.yml.j2: parameterize service names, use NEXTCLOUD_*_SERVICE vars, align host-gateway condition with HPB, tidy ports/expose/network blocks
- env.j2/nginx configs: rename TALK_* → HPB_* variables and locations; use templated NEXTCLOUD_SERVICE for php upstream
- vars: introduce entity_name; centralize *SERVICE keys; rename all Talk vars to HPB; adjust whiteboard keys; compute URLs/JSON configs accordingly
- spreed plugin vars: point to HPB signaling/STUN/TURN and internal secret

Ref: https://chatgpt.com/share/68db9f41-16ec-800f-9cdf-7530862f89aa
2025-09-30 12:52:15 +02:00

42 lines
1.2 KiB
YAML

plugin_configuration:
# signaling_servers: JSON object
- appid: "spreed"
configkey: "signaling_servers"
configvalue: "{{ {
'servers': [ { 'server': NEXTCLOUD_HPB_SIGNALING_URL, 'verify': True, 'alias': 'primary' } ],
'secret': NEXTCLOUD_HPB_SIGNALING_SECRET
} | to_json }}"
# stun_servers: JSON array of strings
- appid: "spreed"
configkey: "stun_servers"
configvalue: >-
{{
[
NEXTCLOUD_HPB_STUN_ONBOARD_CONFIG if NEXTCLOUD_HPB_TURN_ONBOARD_ENABLED else none,
NEXTCLOUD_HPB_STUN_STANDALONE_CONFIG if NEXTCLOUD_HPB_TURN_STANDALONE_ENABLED else none
]
| select
| list
| to_json
}}
# turn_servers: JSON array of objects
- appid: "spreed"
configkey: "turn_servers"
configvalue: >-
{{
[
NEXTCLOUD_HPB_TURN_ONBOARD_CONFIG if NEXTCLOUD_HPB_TURN_ONBOARD_ENABLED else none,
NEXTCLOUD_HPB_TURN_STANDALONE_CONFIG if NEXTCLOUD_HPB_TURN_STANDALONE_ENABLED else none
]
| select
| list
| to_json
}}
# internal secret (plain string)
- appid: "spreed"
configkey: "internal_secret"
configvalue: "{{ NEXTCLOUD_HPB_INTERNAL_SECRET }}"