Nginx转发内网Flv视频流

1、环境说明

Docker Nginx:1.21.5

实现Nginx ssl转发内网flv视频流

2、配置nginx.conf

http {
    upstream live {
        server 10.10.10.10:8300;
        keepalive 64;
    }
    map $http_upgrade $connection_upgrade {
        default upgrade;
        '' close;
    }

    server {
        listen       80;
        listen       443   ssl;
        server_name  www.wielun.com;
        ssl_certificate xxxx_server.crt;
        ssl_certificate_key xxx_server.key;
        
        location /wielun/ {
                    proxy_pass     http://live/;
                    proxy_set_header Host $host:$server_port;
                    proxy_http_version 1.1;
                    proxy_set_header Upgrade $http_upgrade;
                    proxy_set_header Connection "upgrade";
        }
    }
}
# docker restart nginx

3、测试

https://www.wielun.com/wielun/test/test001.live.flv

参考文章:https://blog.csdn.net/qq_41814311/article/details/123638530

你可能感兴趣的:(运维,nginx,nginx转发视频流)