comparison files/patch-examples_etc_turnserver.conf @ 4:9a1ee735f28f

Patch to allow redis connections by a Unix socket. Also document the new "socket" keyword for redis connections in the example configuration file.
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 27 Mar 2020 15:07:57 +0100
parents
children 4a6383e57d12
comparison
equal deleted inserted replaced
3:244ecaf25a6f 4:9a1ee735f28f
1 --- examples/etc/turnserver.conf.orig 2019-03-02 21:06:19 UTC
2 +++ examples/etc/turnserver.conf
3 @@ -315,17 +315,17 @@
4 # as the user database.
5 # This database can be used for long-term credential mechanism
6 # and it can store the secret value for secret-based timed authentication in TURN RESP API.
7 -# Use string format as below (space separated parameters, all optional):
8 +# Use string format as below (space separated parameters, all optional, "socket" has higher prio than "ip"):
9 #
10 -#redis-userdb="ip=<ip-address> dbname=<database-number> password=<database-user-password> port=<port> connect_timeout=<seconds>"
11 +#redis-userdb="ip=<ip-address> socket=<unix-domain-socket-path> dbname=<database-number> password=<database-user-password> port=<port> connect_timeout=<seconds>"
12
13 # Redis status and statistics database connection string, if used (default - empty, no Redis stats DB used).
14 # This database keeps allocations status information, and it can be also used for publishing
15 # and delivering traffic and allocation event notifications.
16 # The connection string has the same parameters as redis-userdb connection string.
17 -# Use string format as below (space separated parameters, all optional):
18 +# Use string format as below (space separated parameters, all optional, "socket" has higher prio than "ip"):
19 #
20 -#redis-statsdb="ip=<ip-address> dbname=<database-number> password=<database-user-password> port=<port> connect_timeout=<seconds>"
21 +#redis-statsdb="ip=<ip-address> socket=<unix-domain-socket-path> dbname=<database-number> password=<database-user-password> port=<port> connect_timeout=<seconds>"
22
23 # The default realm to be used for the users when no explicit
24 # origin/realm relationship was found in the database, or if the TURN