From b7a79de055e1f7463af9f274bca18c52552eb41d Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 21 Feb 2024 19:07:56 +0900 Subject: [PATCH] [turn] make external ip mapping optional --- ansible/inventory/runa.yml | 3 +-- ansible/roles/turn/templates/turnserver.conf | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ansible/inventory/runa.yml b/ansible/inventory/runa.yml index 8157ca0..c4d54d2 100644 --- a/ansible/inventory/runa.yml +++ b/ansible/inventory/runa.yml @@ -77,5 +77,4 @@ runa: mtx-turn-1.lta.internal.ru.com: # waiting for public IP matrix_service: "turn" turn: - realm: "turn-1.corp-serv.net-incorrect-fixme" - external_ip: "1.2.3.4/10.164.128.135" + realm: "mtx-turn-1.lta.internal.ru.com" diff --git a/ansible/roles/turn/templates/turnserver.conf b/ansible/roles/turn/templates/turnserver.conf index a46be04..1aa1fc4 100644 --- a/ansible/roles/turn/templates/turnserver.conf +++ b/ansible/roles/turn/templates/turnserver.conf @@ -5,7 +5,9 @@ listening-port=3478 min-port=49152 max-port=65535 +{% if turn.external_ip is defined %} external-ip={{ turn.external_ip }} +{% endif %} #log-file=stdout log-file=/logs/turn-{{ inventory_hostname }}.log