-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
When using this Docker setup with a STUN/TURN server that has a shared secret defined, connections in Firefox will break unadvertedly.
Following https://meetrix.io/blog/webrtc/jitsi/setting-up-a-turn-server-for-jitsi-meet.html led me to do this
wget https://raw.githubusercontent.com/otalk/mod_turncredentials/master/mod_turncredentials.lua -O .jitsi-meet-cfg/mod_turncredentials.lua
to add the shared secret and the correct host in
vim mod_turncredentials.lua
to add "turncredentials"; to modules_enabled in
vim .jitsi-meet-cfg/prosody/conf.d/jitsi-meet.cfg.lua
and to bind-mount this file into the prosody container with a volumes: declaration in docker-compose.yml like
- ${CONFIG}/mod_turncredentials.lua:/usr/lib/prosody/modules/mod_turncredentials.lua
It would be nice if it would be possible to merely indicate the shared secret via an environment variable (PROSODY_STUN_SECRET?) and have this file and configuration deployed auto-magically into the jitsi/prosody container.
Or does it appear to be a better approach to keep this file manually downloaded, mounted and activated through the XMPP_MODULES=turncredentials key in .env, instead of manually editing jitsi-meet.cfg.lua?