вот настройки nginx.config
#user nobody;
worker_processes 4;
error_log logs/error.log debug;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
# rtmp stat
location /stat {
rtmp_stat all;
rtmp_stat_stylesheet stat.xsl;
}
location /stat.xsl {
# you can move stat.xsl to a different location
root /usr/local/nginx/html;
}
# rtmp control
location /control {
rtmp_control all;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
rtmp {
server {
listen 1935;
ping 30s;
notify_method get;
application live {
live on;
}
}
}
настройки interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.34
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 8.8.8.8 91.144.164.1
открыл 80 порт на роутере к машине 192.168.1.34, доступ через внешний IP к странице есть, локальный тоже.
не получается настроить, вещание прямого потока с OBS, ввожу rtmp://(внешний IP)/live в трансляцию OBS выводится ошибка (не может подключиться к серверу) на локальном rtmp://192.168.1.34/live все работает
кучу статей перерыл, настроить на локале пробем нет.