Skip to content

Commit

Permalink
Let generate password also generate TURN_CREDENTIALS
Browse files Browse the repository at this point in the history
  • Loading branch information
Sando committed Sep 11, 2022
1 parent a2a1458 commit b6cf144
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 23 deletions.
49 changes: 26 additions & 23 deletions env.example
Original file line number Diff line number Diff line change
Expand Up @@ -177,28 +177,6 @@ ETHERPAD_SKIN_VARIANTS="super-light-toolbar super-light-editor light-background
# Wether to use starttls, implies LDAPv3 and requires ldap:// instead of ldaps://
# LDAP_START_TLS=1

#
# eturnal TURN Server configuration
#

# TURN_CREDENTIALS=super-secret-password

# currently hard coded to 'turn.$LETSENCRYPT_DOMAIN'
# TURN_HOST=turn.example.com

# currently hard coded
# TURN_PORT=3478

# currently hard coded to 'turn.$LETSENCRYPT_DOMAIN'
# TURNS_HOST=turn.example.com

# currently hard coded
# TURNS_PORT=443

# TURN relay port range
# TURN_RELAY_MIN_PORT=50000
# TURN_RELAY_MAX_PORT=50500

#
# Security
#
Expand All @@ -224,6 +202,31 @@ JIBRI_RECORDER_PASSWORD=
# XMPP password for Jibri client connections
JIBRI_XMPP_PASSWORD=

# defines the shared authentication secret used to derive the passwords for ephemeral TURN user names
# TURN_CREDENTIALS=


#
# eturnal TURN Server configuration
#

# currently hard coded to 'turn.$LETSENCRYPT_DOMAIN' (in web container)
# TURN_HOST=turn.example.com

# currently hard coded (in web container)
# TURN_PORT=3478

# currently hard coded to 'turn.$LETSENCRYPT_DOMAIN' (in web container)
# TURNS_HOST=turn.example.com

# currently hard coded (in web container)
# TURNS_PORT=443

# TURN relay port range
# TURN_RELAY_MIN_PORT=50000
# TURN_RELAY_MAX_PORT=50500


#
# Docker Compose options
#
Expand All @@ -232,4 +235,4 @@ JIBRI_XMPP_PASSWORD=
#RESTART_POLICY=unless-stopped

# Jitsi image version (useful for local development)
#JITSI_IMAGE_VERSION=latest
#JITSI_IMAGE_VERSION=latest
2 changes: 2 additions & 0 deletions gen-passwords.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ JVB_AUTH_PASSWORD=$(generatePassword)
JIGASI_XMPP_PASSWORD=$(generatePassword)
JIBRI_RECORDER_PASSWORD=$(generatePassword)
JIBRI_XMPP_PASSWORD=$(generatePassword)
TURN_CREDENTIALS=$(generatePassword)

sed -i.bak \
-e "s#JICOFO_AUTH_PASSWORD=.*#JICOFO_AUTH_PASSWORD=${JICOFO_AUTH_PASSWORD}#g" \
-e "s#JVB_AUTH_PASSWORD=.*#JVB_AUTH_PASSWORD=${JVB_AUTH_PASSWORD}#g" \
-e "s#JIGASI_XMPP_PASSWORD=.*#JIGASI_XMPP_PASSWORD=${JIGASI_XMPP_PASSWORD}#g" \
-e "s#JIBRI_RECORDER_PASSWORD=.*#JIBRI_RECORDER_PASSWORD=${JIBRI_RECORDER_PASSWORD}#g" \
-e "s#JIBRI_XMPP_PASSWORD=.*#JIBRI_XMPP_PASSWORD=${JIBRI_XMPP_PASSWORD}#g" \
-e "s#TURN_CREDENTIALS=.*#TURN_CREDENTIALS=${TURN_CREDENTIALS}#g" \
"$(dirname "$0")/.env"

0 comments on commit b6cf144

Please sign in to comment.