Skip to content

Commit 3497d6e

Browse files
lucendiojschaul
andauthored
[charts:sftd] Introduce flag to enable TURN discovery (#1519)
* [charts:sftd] Introduce flag to enable TURN discovery * -f integrate review feedback * changelog Co-authored-by: jschaul <[email protected]>
1 parent 99961a4 commit 3497d6e

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

changelog.d/2-features/pr-1519

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SFT: allow using TURN discovery using 'turnDiscoveryEnabled'

charts/sftd/templates/statefulset.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,12 @@ spec:
8383
else
8484
ACCESS_ARGS="-A ${EXTERNAL_IP}"
8585
fi
86-
exec sftd -I "${POD_IP}" -M "${POD_IP}" ${ACCESS_ARGS} -u "https://{{ required "must specify host" .Values.host }}/sfts/${POD_NAME}"
86+
exec sftd \
87+
-I "${POD_IP}" \
88+
-M "${POD_IP}" \
89+
${ACCESS_ARGS} \
90+
{{ if .Values.turnDiscoveryEnabled }}-T{{ end }} \
91+
-u "https://{{ required "must specify host" .Values.host }}/sfts/${POD_NAME}"
8792
ports:
8893
- name: sft
8994
containerPort: 8585

charts/sftd/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,7 @@ joinCall:
8181
# Overrides the image tag whose default is the chart appVersion.
8282
tag: "1.19.5"
8383

84+
# Allow SFT instances to choose/consider using a TURN server for themselves as a proxy when
85+
# trying to establish a connection to clients
86+
# DOCS: https://docs.wire.com/understand/sft.html#prerequisites
87+
turnDiscoveryEnabled: false

0 commit comments

Comments
 (0)