certs
This commit is contained in:
parent
3dc0d7f860
commit
952e283348
|
@ -38,12 +38,8 @@ function generate_turn_key {
|
||||||
echo "use-auth-secret" >> "${filepath}"
|
echo "use-auth-secret" >> "${filepath}"
|
||||||
echo "static-auth-secret=${turnkey}" >> "${filepath}"
|
echo "static-auth-secret=${turnkey}" >> "${filepath}"
|
||||||
echo "realm=turn.${DEFAULT_DOMAIN_NAME}" >> "${filepath}"
|
echo "realm=turn.${DEFAULT_DOMAIN_NAME}" >> "${filepath}"
|
||||||
if [ -f /etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.pem ]; then
|
echo "cert=$MATRIX_DATA_DIR/${DEFAULT_DOMAIN_NAME}.tls.crt" >> "${filepath}"
|
||||||
echo "cert=/etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.pem" >> "${filepath}"
|
echo "pkey=$MATRIX_DATA_DIR/${DEFAULT_DOMAIN_NAME}.tls.key" >> "${filepath}"
|
||||||
else
|
|
||||||
echo "cert=/etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.crt" >> "${filepath}"
|
|
||||||
fi
|
|
||||||
echo "pkey=/etc/ssl/private/${DEFAULT_DOMAIN_NAME}.key" >> "${filepath}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function remove_turn {
|
function remove_turn {
|
||||||
|
|
Loading…
Reference in New Issue