Use domain instead of IP, add TLS endpoints

This commit is contained in:
2023-12-17 17:57:49 +01:00
parent ca3f06f831
commit 8a97ebf4f8
6 changed files with 40 additions and 13 deletions

View File

@@ -233,17 +233,29 @@ modules:
secret: <%= @stun_secret %>
services:
-
host: <%= @turn_ip_address %>
host: <%= @turn_domain %>
port: <%= @stun_turn_port %>
type: stun
transport: udp
restricted: false
-
host: <%= @turn_ip_address %>
host: <%= @turn_domain %>
port: <%= @stun_turn_port_tls %>
type: stuns
transport: udp
restricted: false
-
host: <%= @turn_domain %>
port: <%= @stun_turn_port %>
type: turn
transport: udp
restricted: true
-
host: <%= @turn_domain %>
port: <%= @stun_turn_port_tls %>
type: turns
transport: tcp
restricted: true
mod_vcard:
search: false
mod_vcard_xupdate: {}

View File

@@ -436,14 +436,14 @@ realm=<%= @realm %>
# Use an absolute path or path relative to the
# configuration file.
#
#cert=/usr/local/etc/turn_server_cert.pem
cert=<%= @cert %>
# Private key file.
# Use an absolute path or path relative to the
# configuration file.
# Use PEM file format.
#
#pkey=/usr/local/etc/turn_server_pkey.pem
pkey=<%= @pkey %>
# Private key file password, if it is in encoded format.
# This option has no default value.
@@ -642,7 +642,7 @@ syslog
# By default it is always ON.
# See also options cli-ip and cli-port.
#
#no-cli
no-cli
#Local system IP address to be used for CLI server endpoint. Default value
# is 127.0.0.1.