fix(优化):订单统计按时间升序,新增设备视频流生成,新增设备推流地址缓存逻辑
This commit is contained in:
@@ -103,4 +103,20 @@ server {
|
||||
return 204;
|
||||
}
|
||||
}
|
||||
|
||||
# API 代理配置
|
||||
location /api-device/ {
|
||||
proxy_pass http://119.45.169.13:9900/api-device/; # 替换为您的后端API地址
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
# 处理 OPTIONS 请求
|
||||
if ($request_method = 'OPTIONS') {
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
|
||||
add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
|
||||
return 204;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user