test.conf 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. server {
  2. listen 12099;
  3. listen [::]:12099;
  4. server_name localhost;
  5. server_tokens off;
  6. proxy_hide_header X-Powered-By;
  7. proxy_hide_header Server;
  8. # minio
  9. location /house-car/oss {
  10. proxy_pass http://192.168.10.7:19000;
  11. }
  12. # 百度地图
  13. location /dugis-baidu {
  14. proxy_pass http://192.168.10.7:19000;
  15. }
  16. # 不动产后端接口
  17. location /house-car/house/api {
  18. proxy_pass http://192.168.50.3:39100;
  19. }
  20. # 车辆后端接口
  21. location /house-car/car/api {
  22. proxy_pass http://192.168.50.3:39100;
  23. }
  24. # 不动产资源地图接口
  25. location /house-car/house/resource-map/api {
  26. proxy_pass http://192.168.50.3:39201;
  27. }
  28. # 不动产资源地图页面
  29. location /house-car/house/resource-map {
  30. rewrite ^/house-car/house/resource-map/(.*)$ /$1 break;
  31. proxy_pass http://192.168.50.3:39201;
  32. }
  33. # 不动产报告页面接口
  34. location /house-car/house/report/api {
  35. proxy_pass http://192.168.50.3:39202;
  36. }
  37. # 不动产报告页面
  38. location /house-car/house/report {
  39. rewrite ^/house-car/house/report/(.*)$ /$1 break;
  40. proxy_pass http://192.168.50.3:39202;
  41. }
  42. # 车辆报告页面接口
  43. location /house-car/car/report/api {
  44. proxy_pass http://192.168.50.3:39203;
  45. }
  46. # 车辆报告报告页面
  47. location /house-car/car/report {
  48. rewrite ^/house-car/car/report/(.*)$ /$1 break;
  49. proxy_pass http://192.168.50.3:39203;
  50. }
  51. # 车辆资源地图接口
  52. location /house-car/car/resource-map/api {
  53. proxy_pass http://192.168.50.3:39204;
  54. }
  55. # 车辆资源地图页面
  56. location /house-car/car/resource-map {
  57. rewrite ^/house-car/car/resource-map/(.*)$ /$1 break;
  58. proxy_pass http://192.168.50.3:39204;
  59. }
  60. # 不动产数据稽查页面接口
  61. location /house-car/house/DATA-CHECK/api {
  62. proxy_pass http://192.168.50.3:39205;
  63. }
  64. # 不动产数据稽查页面
  65. location /house-car/house/DATA-CHECK {
  66. rewrite ^/house-car/house/DATA-CHECK/(.*)$ /$1 break;
  67. proxy_pass http://192.168.50.3:39205;
  68. }
  69. # 不动产数据稽查页面接口
  70. location /house-car/house/data-check/api {
  71. proxy_pass http://192.168.50.3:39205;
  72. }
  73. # 不动产数据稽查页面
  74. location /house-car/house/data-check {
  75. rewrite ^/house-car/house/data-check/(.*)$ /$1 break;
  76. proxy_pass http://192.168.50.3:39205;
  77. }
  78. # 不动产gdc接口
  79. location /house-car/house/dist/api {
  80. proxy_pass http://192.168.50.3:39101;
  81. }
  82. # 不动产gdc页面
  83. location /house-car/house/dist {
  84. rewrite ^/house-car/house/dist/(.*)$ /$1 break;
  85. proxy_pass http://192.168.50.3:39206;
  86. }
  87. #车辆系统
  88. location /house-car/car/ {
  89. proxy_redirect off;
  90. proxy_set_header Host $host:$server_port;
  91. proxy_set_header X-Real-IP $remote_addr;
  92. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  93. proxy_pass https://127.0.0.1:8080/;
  94. }
  95. location /house-car/car/assets/ {
  96. # add_header Access-Control-Allow-Origin '*' always;
  97. # add_header Access-Control-Allow-Headers '*';
  98. # add_header Access-Control-Allow-Methods '*';
  99. # add_header Access-Control-Allow-Credentials 'false';
  100. # if ($request_method = 'OPTIONS') {
  101. # return 204;
  102. # }
  103. proxy_redirect off;
  104. proxy_set_header Host $host:$server_port;
  105. proxy_set_header X-Real-IP $remote_addr;
  106. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  107. proxy_pass https://127.0.0.1:8080/assets/;
  108. }
  109. #error_page 404 /404.html;
  110. # redirect server error pages to the static page /50x.html
  111. #
  112. error_page 500 502 503 504 /50x.html;
  113. location = /50x.html {
  114. root /usr/share/nginx/html;
  115. }
  116. }