mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-10-10 10:48:10 +02:00
nextcloud(spreed): output valid JSON via to_json for signaling/stun/turn; keep internal_secret plain https://chatgpt.com/share/68d75f71-6de8-800f-854c-207771c8d883
This commit is contained in:
@@ -1,30 +1,32 @@
|
|||||||
plugin_configuration:
|
plugin_configuration:
|
||||||
# Signaling (object: { servers: [...], secret: "..." })
|
# signaling_servers: JSON object
|
||||||
- appid: "spreed"
|
- appid: "spreed"
|
||||||
configkey: "signaling_servers"
|
configkey: "signaling_servers"
|
||||||
configvalue:
|
configvalue: "{{ {
|
||||||
servers:
|
'servers': [ { 'server': NEXTCLOUD_TALK_SIGNALING_URL, 'verify': True, 'alias': 'primary' } ],
|
||||||
- server: "{{ NEXTCLOUD_TALK_SIGNALING_URL }}"
|
'secret': NEXTCLOUD_TALK_SIGNALING_SECRET
|
||||||
verify: true
|
} | to_json }}"
|
||||||
alias: "primary"
|
|
||||||
secret: "{{ NEXTCLOUD_TALK_SIGNALING_SECRET }}"
|
|
||||||
|
|
||||||
# STUN (list of strings)
|
# stun_servers: JSON array of strings
|
||||||
- appid: "spreed"
|
- appid: "spreed"
|
||||||
configkey: "stun_servers"
|
configkey: "stun_servers"
|
||||||
configvalue:
|
configvalue: "{{ [
|
||||||
- "stun:{{ NEXTCLOUD_TALK_DOMAIN }}:{{ NEXTCLOUD_TALK_STUN_PORT }}"
|
NEXTCLOUD_TALK_DOMAIN ~ ':' ~ NEXTCLOUD_TALK_STUN_PORT
|
||||||
|
] | to_json }}"
|
||||||
|
|
||||||
# TURN with REST-Secret (list of objects)
|
# turn_servers: JSON array of objects
|
||||||
- appid: "spreed"
|
- appid: "spreed"
|
||||||
configkey: "turn_servers"
|
configkey: "turn_servers"
|
||||||
configvalue:
|
configvalue: "{{ [
|
||||||
- server: "turn:{{ NEXTCLOUD_TALK_DOMAIN }}:{{ NEXTCLOUD_TALK_STUN_PORT }}?transport=udp"
|
{
|
||||||
secret: "{{ NEXTCLOUD_TALK_TURN_SECRET }}"
|
'server': NEXTCLOUD_TALK_DOMAIN ~ ':' ~ NEXTCLOUD_TALK_STUN_PORT ~ '?transport=udp',
|
||||||
ttl: 86400
|
'secret': NEXTCLOUD_TALK_TURN_SECRET,
|
||||||
protocols: "udp,tcp"
|
'ttl': 86400,
|
||||||
|
'protocols': 'udp,tcp'
|
||||||
|
}
|
||||||
|
] | to_json }}"
|
||||||
|
|
||||||
# Internal secret (still required as a separate key)
|
# internal secret (plain string)
|
||||||
- appid: "spreed"
|
- appid: "spreed"
|
||||||
configkey: "internal_secret"
|
configkey: "internal_secret"
|
||||||
configvalue: "{{ NEXTCLOUD_TALK_INTERNAL_SECRET }}"
|
configvalue: "{{ NEXTCLOUD_TALK_INTERNAL_SECRET }}"
|
||||||
|
Reference in New Issue
Block a user