2023年8月

#安装基础框架
dnf install -y gcc
dnf install -y gcc-c++
dnf install -y patch
dnf install -y unzip
dnf install -y automake
dnf install -y tcl
dnf install -y cmake
dnf install -y perl-FindBin
#获取代码,编译发布
git clone -b develop https://github.com/ossrs/srs.git && cd srs/trunk && ./configure && make

server
{
  server_name   login.xxx.cn;
  include  /common/all_xxx.cn.conf;
  location / {
    root    /;
    proxy_buffering off;
    proxy_request_buffering off;
    proxy_http_version 1.1;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $http_connection;

    proxy_ignore_client_abort on;
    proxy_connect_timeout 600;
    proxy_send_timeout 600;
    proxy_read_timeout 600;
    send_timeout 6000;
    proxy_pass    http://192.168.100.1:8081/;
  }
}