Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Commit 6fd993f

Browse files
fix: update coturn setup script and config template
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
1 parent b41b405 commit 6fd993f

2 files changed

Lines changed: 7 additions & 19 deletions

File tree

coturn/turnserver.conf.template

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ max-port=20000
77
fingerprint
88
lt-cred-mech
99

10-
user=YOUR.USERNAME:YOUR.PASSWORD
10+
user=colourstream:your_turn_credential_here
1111

12-
server-name=YOUR.DOMAIN.NAME
13-
realm=YOUR.DOMAIN.NAME
12+
server-name=${DOMAIN}
13+
realm=${DOMAIN}
1414

1515
total-quota=100
1616
stale-nonce=600
1717

18-
cert=/etc/letsencrypt/live/YOUR.DOMAIN.NAME/fullchain.pem
19-
pkey=/etc/letsencrypt/live/YOUR.DOMAIN.NAME/privkey.pem
18+
cert=/etc/certs/fullchain.pem
19+
pkey=/etc/certs/privkey.pem
2020

2121
cipher-list="ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384"
2222

23-
no-stdout-log
23+
no-stdout-log

setup-ghcr.sh

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ download_templates() {
6969
"frontend/.env.template"
7070
"mirotalk/.env.template"
7171
"companion/.env.template"
72-
"coturn/turnserver.conf.template"
7372
)
7473

7574
# Download each template
@@ -87,17 +86,6 @@ download_templates() {
8786
echo "Downloading $template..."
8887
if ! curl -s -o "$TEMPLATES_DIR/$template" "$REPO_URL/$template"; then
8988
echo "⚠️ Failed to download $template"
90-
# If the file fails to download and it's the turnserver.conf.template,
91-
# try copying from local path as fallback
92-
if [ "$template" = "coturn/turnserver.conf.template" ] && [ -f "coturn/turnserver.conf.template" ]; then
93-
echo "Using local turnserver.conf.template instead..."
94-
mkdir -p "$TEMPLATES_DIR/coturn"
95-
cp "coturn/turnserver.conf.template" "$TEMPLATES_DIR/coturn/turnserver.conf.template"
96-
if [ $? -eq 0 ]; then
97-
echo "✅ Successfully copied local turnserver.conf.template"
98-
continue
99-
fi
100-
fi
10189
return 1
10290
fi
10391
done
@@ -385,4 +373,4 @@ main() {
385373
}
386374

387375
# Run the main function
388-
main
376+
main

0 commit comments

Comments
 (0)