default.conf 634 B

1234567891011121314151617181920212223242526
  1. server {
  2. listen 39201;
  3. listen [::]:39201;
  4. server_name localhost;
  5. access_log access.log;
  6. error_log error.log;
  7. location / {
  8. root /dist;
  9. index index.html index.htm;
  10. try_files $uri $uri/ /index.html;
  11. }
  12. # 后端
  13. location /house-car/house/resource-map/api {
  14. proxy_pass http://172.16.107.4:39100;
  15. }
  16. # minio
  17. location /house-car/oss {
  18. proxy_pass http://172.16.107.4:39000;
  19. }
  20. # 百度地图
  21. location /dugis-baidu/baidumap/jsapi {
  22. proxy_pass http://172.16.107.4:39000/house-car/oss/public/dugis-baidu/baidumap/jsapi;
  23. }
  24. }