Files
ibs-app-fullstack/szzh-h5/public/baidu/文档.md
2026-03-04 14:31:07 +08:00

47 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
1. 将css 和 js 中的 urltest.com 全局搜索替换成 后端的地址
2. 在后端增加转发如下nginx配置
```nginx
# 内网地图转发-start
location /api_map_baidu_com/ {
#180.101.212.184
proxy_pass https://api.map.baidu.com/;
proxy_set_header Host api.map.baidu.com;
}
location /webmap0_bdimg_com/ {
#182.84.110.35
proxy_pass https://webmap0.bdimg.com/;
proxy_set_header Host webmap0.bdimg.com;
}
location /maponline0_bdimg_com/ {
#182.84.110.35
proxy_pass https://maponline0.bdimg.com/;
proxy_set_header Host maponline0.bdimg.com;
}
location /maponline1_bdimg_com/ {
# 182.84.110.35
proxy_pass https://maponline1.bdimg.com/;
proxy_set_header Host maponline1.bdimg.com;
}
location /maponline2_bdimg_com/ {
# 182.84.110.35
proxy_pass https://maponline2.bdimg.com/;
proxy_set_header Host maponline2.bdimg.com;
}
location /maponline3_bdimg_com/ {
# 182.84.110.35
proxy_pass https://maponline3.bdimg.com/;
proxy_set_header Host maponline3.bdimg.com;
}
location /pcor_baidu_com/ {
# 180.101.212.102
proxy_pass https://pcor.baidu.com/;
proxy_set_header Host pcor.baidu.com;
}
location /dlswbr_baidu_com/ {
# 182.107.80.35
proxy_pass https://dlswbr.baidu.com/;
proxy_set_header Host dlswbr.baidu.com;
}
# 内网地图转发-end
```