Former-commit-id: 600bf328dd2d50c395db34378f8a3f1e9d2e7146
Former-commit-id: a078dfee1ab264f407d76facf63f45e7ff86d9f8
1.0
wanggang 4 years ago
parent 7079aa4032
commit 8403e74bd6

@ -23,19 +23,15 @@ stats {
disk sda sdb xvda xvdb; disk sda sdb xvda xvdb;
} }
vhost __defaultVhost__ { vhost __defaultVhost__ {
tcp_nodelay on tcp_nodelay on min_latency on;
min_latency on;
play { play {
gop_cache off; gop_cache off;
queue_length 10; queue_length 10;
mw_latency 100; mw_latency 100;
} }
publish { publish {
mr off; mr off;
} }
transcode live { transcode live {
enabled off; enabled off;
ffmpeg ./objs/ffmpeg/bin/ffmpeg; ffmpeg ./objs/ffmpeg/bin/ffmpeg;

@ -20,8 +20,15 @@ http {
listen 0.0.0.0:80; listen 0.0.0.0:80;
server_name localhost; server_name localhost;
location / { location /platform/ {
proxy_pass http://host.docker.internal:8011/; 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; error_page 500 502 503 504 /50x.html;

Loading…
Cancel
Save