hbzjt_map_ui_bs.conf 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. server {
  2. listen 1002;
  3. gzip on;
  4. gzip_min_length 1k;
  5. gzip_buffers 16 64k;
  6. gzip_http_version 1.1;
  7. gzip_comp_level 9;
  8. gzip_types text/plain text/javascript application/javascript image/jpeg image/gif image/png application/font-woff application/x-javascript text/css application/xml;
  9. gzip_vary on;
  10. location / {
  11. root /web/hbzjt_map_ui;
  12. index index.html index.htm;
  13. }
  14. # oauth
  15. location /proxy_oauth/ {
  16. proxy_set_header Host $host;
  17. proxy_set_header X-Real-IP $remote_addr;
  18. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  19. proxy_set_header X-Forwarded-Host $server_name;
  20. proxy_pass http://121.43.55.7:10086/;
  21. }
  22. # 数据
  23. location /proxy_data/ {
  24. proxy_set_header Host $host;
  25. proxy_set_header X-Real-IP $remote_addr;
  26. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  27. proxy_set_header X-Forwarded-Host $server_name;
  28. proxy_pass http://121.43.55.7:10087/;
  29. }
  30. # 标注
  31. location /proxy_mark/ {
  32. proxy_set_header Host $host;
  33. proxy_set_header X-Real-IP $remote_addr;
  34. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  35. proxy_set_header X-Forwarded-Host $server_name;
  36. proxy_pass http://121.43.55.7:10088/;
  37. }
  38. }