balzack / databag

fast & lightweight self-hosted messenger
Apache License 2.0
791 stars 44 forks source link

Web rtc from cloudflare #99

Open torik988 opened 1 month ago

torik988 commented 1 month ago

Hello, I've been using Databag for almost 2 month now, and I've really enjoyed your project. However, from the beginning, I wanted to use WebRTC calls but didn't have a public IP to host the server.S i decided to use cloudflare tunnels to allons access to my server. Recently, I discovered that Cloudflare offers a free call WebRTC server service. On the main dashboard of your account, you can choose to call and create a token to access their service. However, the authentication token changes frequently, and they ask the user to create their backend server to generate the username and password. I wanted to know if it was possible to add a place in the Databag admin dashboard where you could add your token and app ID, and Databag would automatically generate the username and password and use it. If I'm unclear, I tried my best (I'm French)šŸ˜…. If you have any questions, I'm still open. Have a nice day. TORIK

balzack commented 1 month ago

I think I found what you are referring to: https://developers.cloudflare.com/calls/turn/ It seems straightforward to integrate.

I am finishing a release to support MFA (TOTP) in the next week or two, and then I will integrate the cloudflare webrtc shortly after. (assuming it is as easy as it seems)

Thank you for using this project! Iā€™m really happy to hear you like it. Iā€™m also French btw :)

balzack commented 2 weeks ago

Cloudflare setup options have been added to the admin dashboard in the latest release. Can you confirm it works for you when you get a chance? Thanks for using this project!