修复工作

This commit is contained in:
2025-10-01 21:31:30 +08:00
parent 34fce9e552
commit 863c191521
2 changed files with 129 additions and 101 deletions

View File

@@ -56,10 +56,10 @@ server {
proxy_request_buffering off;
chunked_transfer_encoding on;
# 设置超时时间(视频流长连接)
proxy_connect_timeout 60s;
proxy_send_timeout 3600s;
proxy_read_timeout 3600s;
# 设置超时时间(视频流长连接)- 增加到2小时
proxy_connect_timeout 120s;
proxy_send_timeout 7200s;
proxy_read_timeout 7200s;
# 请求头
proxy_set_header Host $host;
@@ -71,6 +71,9 @@ server {
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
add_header Access-Control-Allow-Headers '*';
# 禁用限速
proxy_limit_rate 0;
}
# 视频流代理HLS