-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
stunnerd.conf
52 lines (52 loc) · 1.28 KB
/
stunnerd.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: v1alpha1
admin:
name: stunnerd
loglevel: $STUNNER_LOGLEVEL
metrics_endpoint: "http://0.0.0.0:8080/metrics"
auth:
type: $STUNNER_AUTH_TYPE
realm: $STUNNER_REALM
credentials:
username: $STUNNER_USERNAME
password: $STUNNER_PASSWORD
secret: $STUNNER_SHARED_SECRET
clusters:
- name: open-cluster
type: STATIC
endpoints:
- "0.0.0.0/0"
# - name: media-server-cluster
# type: STRICT_DNS # STATIC / STRICT_DNS
# endpoints:
# - media-server.default.svc.cluster.local
listeners:
- name: stunnerd-udp
public_address: "$STUNNER_ADDR"
address: "$STUNNER_ADDR"
protocol: TURN-UDP
port: $STUNNER_PORT
min_relay_port: $STUNNER_MIN_PORT
max_relay_port: $STUNNER_MAX_PORT
routes:
- open-cluster
# - media-server-cluster
- name: stunnerd-tcp
public_address: "$STUNNER_ADDR"
address: "$STUNNER_ADDR"
protocol: TURN-TCP
port: $STUNNER_PORT
min_relay_port: $STUNNER_MIN_PORT
max_relay_port: $STUNNER_MAX_PORT
routes:
- open-cluster
# - media-server-cluster
# - name: stunnerd-tls
# protocol: TURN-TLS
# port: 3479
# cert: <file.cert>
# key: <key.cert>
# - name: stunnerd-dtls
# protocol: dtls
# port: 3479
# cert: <file.cert>
# key: <key.cert>