coturn icon indicating copy to clipboard operation
coturn copied to clipboard

Environment variables to control authentication

Open ronnessim opened this issue 1 year ago • 1 comments

We are setting up a few coturn instances, and we need to automate the authentication parts. We could not find any documentation on environment variables that control authentication, or which could be used to create a single default user at first run. Based on what we see in the git repo it sounds like we need to write code to alter the turnserver.conf based on new variables we invent (e.g. using envsubst and other tools). We just want to be sure that this doesn't already exist before we go down that path (since most projects have this type of configurability already).

ronnessim avatar Sep 17 '24 14:09 ronnessim

Hi @ronnessim If I understand your question correctly - there are 3 ways coturn accepts authentication settings:

  • config file
  • cli arguments
  • database

For the first 2 you need to write code on how the auth info is plumbed - as you pointed out correctly

eakraly avatar Oct 04 '24 17:10 eakraly