privateone commited on
Commit
773fdad
·
verified ·
1 Parent(s): 90c3f08

Create custom-entrypoint.sh

Browse files
Files changed (1) hide show
  1. custom-entrypoint.sh +18 -0
custom-entrypoint.sh ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Detect external IP as in official image (assuming detect-external-ip.sh is available)
4
+ EXTERNAL_IP=$(detect-external-ip)
5
+
6
+ # Start turnserver with custom port 7860, logging to stdout, and basic config
7
+ # Note: Add --user=username:password for auth; adjust realm as needed
8
+ exec turnserver \
9
+ --listening-port=7860 \
10
+ --tls-listening-port=7860 \
11
+ --external-ip=$EXTERNAL_IP \
12
+ --log-file=stdout \
13
+ --simple-log \
14
+ --no-cli \
15
+ --realm=yourdomain.example.com \
16
+ --userdb=/etc/turnuserdb.conf \
17
+ --static-auth-secret=your-secret-key \
18
+ "$@"