From f0f677430309eac0ab504b7bf4844a011da51b09 Mon Sep 17 00:00:00 2001 From: "srvproxy001.itguys.com.br" Date: Mon, 15 Sep 2025 18:01:29 -0300 Subject: [PATCH] =?UTF-8?q?[Auto-Sync]=20Atualiza=C3=A7=C3=A3o=20das=20con?= =?UTF-8?q?figura=C3=A7=C3=B5es=20em=20srvproxy001.itguys.com.br=20-=20202?= =?UTF-8?q?5-09-15=2018:01:29?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/nginx.conf | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 066c710..11f1cb5 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -9,6 +9,28 @@ events { multi_accept on; } +stream { + # Encaminhamento da porta de sinalização SIP (TCP) + server { + listen 5060; + proxy_pass 172.16.254.130:5060; + } + + # Encaminhamento da porta de sinalização SIP (UDP) + server { + listen 5060 udp; + proxy_pass 172.16.254.130:5060; + } + + # Encaminhamento da faixa de portas RTP para o áudio (UDP) + # Nota: Isto requer que o Nginx tenha sido compilado com a opção --with-stream_udp_proxy_listen_gated + # Se der erro, comece apenas com as portas 5060 e adicione esta parte depois se necessário. + server { + listen 10000-20000 udp; + proxy_pass 172.16.254.130; # O Nginx irá manter a porta de destino original + } +} + http { #Configuraçoes de Cache proxy_cache_path /var/cache/nginx/zabbix_cache levels=1:2 keys_zone=zabbix_cache:10m max_size=1g inactive=60m use_temp_path=off;