mirror of
https://gitee.com/270580156/weiyu.git
synced 2025-12-30 10:52:26 +00:00
update
This commit is contained in:
@@ -129,71 +129,6 @@ stream {
|
||||
# Stream-level logging to aid troubleshooting
|
||||
error_log /var/log/nginx/stream_error.log info;
|
||||
|
||||
# SIP UDP passthrough
|
||||
# upstream freeswitch_sip_udp {
|
||||
# server 14.103.165.199:5060; # SIP UDP - public IP
|
||||
# }
|
||||
|
||||
# # SIP TCP passthrough
|
||||
# upstream freeswitch_sip_tcp {
|
||||
# server 14.103.165.199:5060; # SIP TCP - public IP
|
||||
# }
|
||||
|
||||
# # SIPS (TLS) passthrough on 5061 using ssl_preread
|
||||
# # Ensure nginx is built with the stream_ssl_preread module.
|
||||
# upstream freeswitch_sips_tcp {
|
||||
# server 14.103.165.199:5061; # SIPS TCP - public IP
|
||||
# }
|
||||
|
||||
# # External SIP TCP (e.g., 5080)
|
||||
# upstream freeswitch_external_tcp {
|
||||
# server 14.103.165.199:5080; # External SIP TCP - public IP
|
||||
# }
|
||||
|
||||
# # STUN UDP passthrough (recommended to use coturn in production)
|
||||
# upstream freeswitch_stun_udp {
|
||||
# server 14.103.165.199:3478; # STUN - public IP
|
||||
# }
|
||||
|
||||
# # SIP UDP
|
||||
# server {
|
||||
# listen 5060 udp;
|
||||
# proxy_pass freeswitch_sip_udp;
|
||||
# proxy_timeout 3600s;
|
||||
# proxy_responses 1;
|
||||
# proxy_bind $remote_addr transparent;
|
||||
# }
|
||||
|
||||
# # SIP TCP
|
||||
# server {
|
||||
# listen 5060;
|
||||
# proxy_pass freeswitch_sip_tcp;
|
||||
# proxy_timeout 3600s;
|
||||
# proxy_bind $remote_addr transparent;
|
||||
# }
|
||||
|
||||
# # SIPS TCP (TLS passthrough)
|
||||
# server {
|
||||
# listen 5061;
|
||||
# proxy_pass freeswitch_sips_tcp;
|
||||
# ssl_preread on;
|
||||
# proxy_timeout 3600s;
|
||||
# }
|
||||
|
||||
# # External SIP TCP (e.g., 5080)
|
||||
# server {
|
||||
# listen 5080;
|
||||
# proxy_pass freeswitch_external_tcp;
|
||||
# proxy_timeout 3600s;
|
||||
# }
|
||||
|
||||
# # STUN UDP
|
||||
# server {
|
||||
# listen 3478 udp;
|
||||
# proxy_pass freeswitch_stun_udp;
|
||||
# proxy_timeout 60s;
|
||||
# }
|
||||
|
||||
# IMPORTANT: Do NOT attempt to proxy RTP via nginx stream.
|
||||
# RTP uses a wide port range and should be exposed directly to FreeSWITCH
|
||||
# or handled via a TURN server (e.g., coturn). Remove any single-port RTP proxy.
|
||||
|
||||
Reference in New Issue
Block a user