8000.conf 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. server {
  2. listen 8000 ssl;
  3. listen [::]:8000 ssl;
  4. server_name localhost;
  5. ssl_certificate /etc/nginx/ssl/server.crt;
  6. ssl_certificate_key /etc/nginx/ssl/server.key;
  7. ssl_session_timeout 1h;
  8. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  9. ssl_protocols TLSv1.2 TLSv1.3;
  10. ssl_prefer_server_ciphers on;
  11. server_tokens off;
  12. proxy_hide_header X-Powered-By;
  13. proxy_hide_header Server;
  14. #add_header X-Frame-Options SAMEORIGIN;
  15. #access_log /var/log/nginx/host.access.log main;
  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. # 不动产后端接口
  25. location /house-car/house/api {
  26. proxy_pass http://172.16.107.4:39100;
  27. }
  28. # 车辆后端接口
  29. location /house-car/car/api {
  30. proxy_pass http://172.16.107.4:39100;
  31. }
  32. # 不动产资源地图接口
  33. location /house-car/house/resource-map/api {
  34. proxy_pass http://172.16.107.4:39100;
  35. }
  36. # 不动产资源地图页面
  37. location /house-car/house/resource-map {
  38. rewrite ^/house-car/house/resource-map/(.*)$ /$1 break;
  39. proxy_pass http://172.16.107.4:39201;
  40. }
  41. # 不动产报告页面接口
  42. location /house-car/house/report/api {
  43. proxy_pass http://172.16.107.4:39100;
  44. }
  45. # 不动产报告页面
  46. location /house-car/house/report {
  47. rewrite ^/house-car/house/report/(.*)$ /$1 break;
  48. proxy_pass http://172.16.107.4:39202;
  49. }
  50. # 车辆报告页面接口
  51. location /house-car/car/report/api {
  52. proxy_pass http://172.16.107.4:39100;
  53. }
  54. # 车辆报告报告页面
  55. location /house-car/car/report {
  56. rewrite ^/house-car/car/report/(.*)$ /$1 break;
  57. proxy_pass http://172.16.107.4:39203;
  58. }
  59. # 车辆资源地图接口
  60. location /house-car/car/resource-map/api {
  61. proxy_pass http://172.16.107.4:39100;
  62. }
  63. # 车辆资源地图页面
  64. location /house-car/car/resource-map {
  65. rewrite ^/house-car/car/resource-map/(.*)$ /$1 break;
  66. proxy_pass http://172.16.107.4:39204;
  67. }
  68. # 不动产数据稽查页面接口
  69. location /house-car/house/DATA-CHECK/api {
  70. proxy_pass http://172.16.107.4:39100;
  71. }
  72. # 不动产数据稽查页面
  73. location /house-car/house/DATA-CHECK {
  74. rewrite ^/house-car/house/DATA-CHECK/(.*)$ /$1 break;
  75. proxy_pass http://172.16.107.4:39205;
  76. }
  77. # 不动产数据稽查页面接口
  78. location /house-car/house/data-check/api {
  79. proxy_pass http://172.16.107.4:39100;
  80. }
  81. # 不动产数据稽查页面
  82. location /house-car/house/data-check {
  83. rewrite ^/house-car/house/data-check/(.*)$ /$1 break;
  84. proxy_pass http://172.16.107.4:39205;
  85. }
  86. # 不动产gdc接口
  87. location /house-car/house/dist/api {
  88. proxy_pass http://172.16.107.4:39101;
  89. #proxy_pass http://172.16.107.4:39089/house/dist/api;
  90. }
  91. # 不动产gdc页面
  92. location /house-car/house/dist {
  93. rewrite ^/house-car/house/dist/(.*)$ /$1 break;
  94. proxy_pass http://172.16.107.4:39206;
  95. }
  96. # 不动产系统
  97. #location /house-car/house/dist/ {
  98. # proxy_pass http://172.16.107.4:39089/house/dist/;
  99. #}
  100. #location /house-car/house/api/ {
  101. # proxy_pass http://172.16.107.4:39089/house/api/;
  102. # }
  103. #车辆系统
  104. location /house-car/car/ {
  105. proxy_redirect off;
  106. proxy_set_header Host $host:$server_port;
  107. proxy_set_header X-Real-IP $remote_addr;
  108. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  109. proxy_pass https://127.0.0.1:8080/;
  110. }
  111. location /house-car/car/assets/ {
  112. # add_header Access-Control-Allow-Origin '*' always;
  113. # add_header Access-Control-Allow-Headers '*';
  114. # add_header Access-Control-Allow-Methods '*';
  115. # add_header Access-Control-Allow-Credentials 'false';
  116. # if ($request_method = 'OPTIONS') {
  117. # return 204;
  118. # }
  119. proxy_redirect off;
  120. proxy_set_header Host $host:$server_port;
  121. proxy_set_header X-Real-IP $remote_addr;
  122. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  123. proxy_pass https://127.0.0.1:8080/assets/;
  124. }
  125. location /assets/ {
  126. proxy_redirect off;
  127. proxy_set_header Host $host:$server_port;
  128. proxy_set_header X-Real-IP $remote_addr;
  129. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  130. proxy_pass https://127.0.0.1:8080/assets/;
  131. }
  132. location /assets/ {
  133. proxy_redirect off;
  134. proxy_set_header Host $host:$server_port;
  135. proxy_set_header X-Real-IP $remote_addr;
  136. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  137. proxy_pass https://127.0.0.1:8080/assets/;
  138. }
  139. #error_page 404 /404.html;
  140. # redirect server error pages to the static page /50x.html
  141. #
  142. error_page 500 502 503 504 /50x.html;
  143. location = /50x.html {
  144. root /usr/share/nginx/html;
  145. }
  146. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  147. #
  148. #location ~ \.php$ {
  149. # proxy_pass http://127.0.0.1;
  150. #}
  151. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  152. #
  153. #location ~ \.php$ {
  154. # root html;
  155. # fastcgi_pass 127.0.0.1:9000;
  156. # fastcgi_index index.php;
  157. # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  158. # include fastcgi_params;
  159. #}
  160. # deny access to .htaccess files, if Apache's document root
  161. # concurs with nginx's one
  162. #
  163. #location ~ /\.ht {
  164. # deny all;
  165. #}
  166. }