privateone commited on
Commit
7975aed
·
verified ·
1 Parent(s): 439e5c2

Update turnserver.conf

Browse files
Files changed (1) hide show
  1. turnserver.conf +12 -23
turnserver.conf CHANGED
@@ -1,45 +1,34 @@
1
  # turnserver.conf - minimal example
2
 
3
- # Listening port (container will use 3478 by default)
4
  listening-port=3478
5
  tls-listening-port=5349
6
 
7
- # Enable long-term credential mechanism (recommended)
8
  lt-cred-mech
9
 
10
- # Static user (username:password). For production prefer long-term-secret + HMAC users.
11
  user=testuser:testpass
12
 
13
  # Realm shown to clients
14
  realm=examplerealm
15
 
16
- # Fingerprint attribute for TURN messages
17
  fingerprint
18
 
19
- # Allow both UDP and TCP
20
- no-udp # <-- COMMENT OUT if you want UDP allowed (we leave UDP allowed by default)
21
- # no-tcp # <-- leave commented to allow TCP
22
 
23
- # Relay ports (min and max). By default coturn uses 49152-65535.
24
- # NOTE: if you don't have a port range open on the host you won't be able to relay media via UDP properly.
25
- # For testing only, you could set them equal to 3478 (NOT recommended for production).
26
- # Example to use the same relay port (may or may not work with your clients):
27
- # min-port=3479
28
- # max-port=3479
29
 
30
- # Log to stdout (docker-friendly)
31
  log-file=stdout
32
  simple-log
33
 
34
- # Don't attempt to create users from DB (we use static user above)
35
- # userdb=/etc/coturn/turndb
36
-
37
- # Stun-only fallback is possible if relaying is impossible:
38
- # support-stun
39
-
40
- # Optional secure production settings:
41
  # use-auth-secret
42
- # static-auth-secret=<your-long-secret-here>
43
- # cert and pkey paths if using TLS:
44
  # cert=/etc/coturn/certs/fullchain.pem
45
  # pkey=/etc/coturn/certs/privkey.pem
 
1
  # turnserver.conf - minimal example
2
 
3
+ # Listening port (container uses 3478 by default)
4
  listening-port=3478
5
  tls-listening-port=5349
6
 
7
+ # Enable long-term credential mechanism
8
  lt-cred-mech
9
 
10
+ # Static user for testing (username:password)
11
  user=testuser:testpass
12
 
13
  # Realm shown to clients
14
  realm=examplerealm
15
 
16
+ # Use fingerprint attribute
17
  fingerprint
18
 
19
+ # Allow both UDP and TCP (do NOT include 'no-udp' if you want UDP enabled)
20
+ # If you want to explicitly disable UDP, add the line: no-udp
 
21
 
22
+ # Relay port range (optional recommended in production)
23
+ # min-port=50000
24
+ # max-port=50010
 
 
 
25
 
26
+ # Log to stdout
27
  log-file=stdout
28
  simple-log
29
 
30
+ # Example production settings (commented)
 
 
 
 
 
 
31
  # use-auth-secret
32
+ # static-auth-secret=your_very_long_secret_here
 
33
  # cert=/etc/coturn/certs/fullchain.pem
34
  # pkey=/etc/coturn/certs/privkey.pem