coturn / coturn

coturn TURN server project
Other
11.38k stars 2.02k forks source link

how to renew SSL certificate in coturn docker container. #1589

Open NirmalSenthil opened 2 weeks ago

NirmalSenthil commented 2 weeks ago

Hi, i have question for how to renew ssl certificate in coturn docker container. can i do automaticaly with certbot. anyone have any experience with this. give me a guide for it.

eakraly commented 1 week ago

Hi @NirmalSenthil One way to do it:

  1. Store certificates on a volume
  2. Mount it to the coturn container
  3. Update the certificates on the volume (from other container I guess)
  4. Send SIGUSR2 signal to the coturn container so that it reloads certificates (this is not a documented feature but it works. Also, not implemented in container running scripts so you will have to patch them)
NirmalSenthil commented 1 week ago

Hi @eakraly , Thank you for your response. i appreciate your answer. i have a another doubt that i have multiple coturn docker container in different severs. in that case how to i manage that certificate renewal. can i use central volume to mange a certificate and renewal. then also can i use single ssl certificate to multiple coturn docker container.

eakraly commented 1 week ago

This is up to you and your infrastructure. I did that in the past in k8s and it worked well. YMMW however your deployment is done but nothing really prevents you from doing this.