From 8403e74bd6547619aab36d279a58c9c2e77d33db Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Tue, 9 Mar 2021 08:59:53 +0800 Subject: [PATCH] update Former-commit-id: 600bf328dd2d50c395db34378f8a3f1e9d2e7146 Former-commit-id: a078dfee1ab264f407d76facf63f45e7ff86d9f8 --- publish/src/linux-x64/publish/apps/srs/conf/srs.conf | 12 ++++-------- .../publish/docker/conf/platform/nginx.conf | 11 +++++++++-- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/publish/src/linux-x64/publish/apps/srs/conf/srs.conf b/publish/src/linux-x64/publish/apps/srs/conf/srs.conf index bb8c22d1..93206b53 100644 --- a/publish/src/linux-x64/publish/apps/srs/conf/srs.conf +++ b/publish/src/linux-x64/publish/apps/srs/conf/srs.conf @@ -23,19 +23,15 @@ stats { disk sda sdb xvda xvdb; } vhost __defaultVhost__ { - tcp_nodelay on - min_latency on; - + tcp_nodelay on min_latency on; play { - gop_cache off; - queue_length 10; - mw_latency 100; + gop_cache off; + queue_length 10; + mw_latency 100; } - publish { mr off; } - transcode live { enabled off; ffmpeg ./objs/ffmpeg/bin/ffmpeg; diff --git a/publish/src/linux-x64/publish/docker/conf/platform/nginx.conf b/publish/src/linux-x64/publish/docker/conf/platform/nginx.conf index 32c16d35..95c55762 100644 --- a/publish/src/linux-x64/publish/docker/conf/platform/nginx.conf +++ b/publish/src/linux-x64/publish/docker/conf/platform/nginx.conf @@ -20,8 +20,15 @@ http { listen 0.0.0.0:80; server_name localhost; - location / { - proxy_pass http://host.docker.internal:8011/; + location /platform/ { + proxy_pass http://host.docker.internal:8011/platform/; + } + + location ^~ /platform/hub { + proxy_pass http://host.docker.internal:8011/platform/hub; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; } error_page 500 502 503 504 /50x.html;