大量更新
This commit is contained in:
25
71-202601-XA监管平台/反向代理/haikang-reverse-proxy.conf
Normal file
25
71-202601-XA监管平台/反向代理/haikang-reverse-proxy.conf
Normal file
@@ -0,0 +1,25 @@
|
||||
server {
|
||||
listen 2227;
|
||||
server_name localhost;
|
||||
|
||||
location / {
|
||||
proxy_pass https://open.hikvision.com;
|
||||
|
||||
proxy_set_header Host open.hikvision.com;
|
||||
proxy_ssl_name open.hikvision.com;
|
||||
proxy_ssl_server_name on;
|
||||
proxy_ssl_protocols TLSv1.2 TLSv1.3;
|
||||
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
|
||||
# 将远端重定向中的域名替换回本地地址
|
||||
proxy_redirect https://open.hikvision.com/ http://10.22.57.8:2227/;
|
||||
|
||||
proxy_connect_timeout 10s;
|
||||
proxy_read_timeout 30s;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user