|
|
|
|
38
|
echo "use-auth-secret" >> "${filepath}"
|
38
|
echo "use-auth-secret" >> "${filepath}"
|
39
|
echo "static-auth-secret=${turnkey}" >> "${filepath}"
|
39
|
echo "static-auth-secret=${turnkey}" >> "${filepath}"
|
40
|
echo "realm=turn.${DEFAULT_DOMAIN_NAME}" >> "${filepath}"
|
40
|
echo "realm=turn.${DEFAULT_DOMAIN_NAME}" >> "${filepath}"
|
41
|
- if [ -f /etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.pem ]; then
|
|
|
42
|
- echo "cert=/etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.pem" >> "${filepath}"
|
|
|
43
|
- else
|
|
|
44
|
- echo "cert=/etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.crt" >> "${filepath}"
|
|
|
45
|
- fi
|
|
|
46
|
- echo "pkey=/etc/ssl/private/${DEFAULT_DOMAIN_NAME}.key" >> "${filepath}"
|
|
|
|
|
41
|
+ echo "cert=$MATRIX_DATA_DIR/${DEFAULT_DOMAIN_NAME}.tls.crt" >> "${filepath}"
|
|
|
42
|
+ echo "pkey=$MATRIX_DATA_DIR/${DEFAULT_DOMAIN_NAME}.tls.key" >> "${filepath}"
|
47
|
}
|
43
|
}
|
48
|
|
44
|
|
49
|
function remove_turn {
|
45
|
function remove_turn {
|