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