include /etc/nginx/sites-enabled/*;
поменял на include /etc/nginx/sites-enabled/*.conf;
, убрал всю эту простыню текста. отдельным файлом заполнил /etc/nginx/sites-enabled/matrix.mysite.ru.streamconf следующим:upstream coturn {
server 192.168.2.100:3478;
server 192.168.2.100:3479;
server 192.168.2.100:3480;
server 192.168.2.100:3481;
server 192.168.2.100:3482;
server 192.168.2.100:3483;
server 192.168.2.100:3484;
server 192.168.2.100:3485;
}
#
server {
listen 3478-3485;
proxy_pass coturn;
}
server {
listen 5349;
proxy_pass 192.168.2.100:5349;
}
server {
listen 64000-64700 udp;
proxy_pass 192.168.2.100:$server_port;
}
stream {
access_log off;
error_log /var/log/nginx/streamerror.log;
include /etc/nginx/conf.d/*.streamconf;
include /etc/nginx/sites-enabled/*.streamconf;
# IPv4 Section
upstream coturn {
server 192.168.2.100:3478;
server 192.168.2.100:3479;
server 192.168.2.100:3480;
server 192.168.2.100:3481;
server 192.168.2.100:3482;
server 192.168.2.100:3483;
server 192.168.2.100:3484;
server 192.168.2.100:3485;
}
server {
listen 3478;
proxy_pass 192.168.2.100:3478;
}
server {
listen 3479;
proxy_pass 192.168.2.100:3479;
}
server {
listen 3480;
proxy_pass 192.168.2.100:3480;
}
server {
listen 3481;
proxy_pass 192.168.2.100:3481;
}
server {
listen 3482;
proxy_pass 192.168.2.100:3482;
}
server {
listen 3483;
proxy_pass 192.168.2.100:3483;
}
server {
listen 3484;
proxy_pass 192.168.2.100:3484;
}
server {
listen 3485;
proxy_pass 192.168.2.100:3485;
}
server {
listen 3478 udp;
proxy_pass 192.168.2.100:3478;
}
server {
listen 3479 udp;
proxy_pass 192.168.2.100:3479;
}
server {
listen 3480 udp;
proxy_pass 192.168.2.100:3480;
}
server {
listen 3481 udp;
proxy_pass 192.168.2.100:3481;
}
server {
listen 3482 udp;
proxy_pass 192.168.2.100:3482;
}
server {
listen 3483 udp;
proxy_pass 192.168.2.100:3483;
}
server {
listen 3484 udp;
proxy_pass 192.168.2.100:3484;
}
server {
listen 3485 udp;
proxy_pass 192.168.2.100:3485;
}
server {
# listen 49152-65535 udp;
listen 64000-64700 udp;
proxy_pass 192.168.2.100:$server_port;
}
server {
listen 5349;
proxy_pass 192.168.2.100:5349;
}
server {
listen 443 udp;
listen [::]:443 udp;
proxy_pass 192.168.2.100:443;
}
}