server { listen 39201; listen [::]:39201; server_name localhost; access_log access.log; error_log error.log; location / { root /dist; index index.html index.htm; try_files $uri $uri/ /index.html; } # 后端 location /house-car/house/resource-map/api { proxy_pass http://172.16.107.4:39100; } # minio location /house-car/oss { proxy_pass http://172.16.107.4:39000; } # 百度地图 location /dugis-baidu/baidumap/jsapi { proxy_pass http://172.16.107.4:39000/house-car/oss/public/dugis-baidu/baidumap/jsapi; } }