8000.conf 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. server {
  2. listen 8000 ssl;
  3. listen [::]:8000 ssl;
  4. server_name 133.96.95.30, 172.16.107.4, 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. #access_log /var/log/nginx/host.access.log main;
  13. # minio
  14. location /house-car/oss {
  15. proxy_pass http://172.16.107.4:39000;
  16. }
  17. # 不动产资源地图接口
  18. location /house-car/house/resource-map/api {
  19. proxy_pass http://172.16.107.4:39201;
  20. }
  21. # 不动产资源地图页面
  22. location /house-car/house/resource-map {
  23. rewrite ^/house-car/house/resource-map/(.*)$ /$1 break;
  24. proxy_pass http://172.16.107.4:39201;
  25. }
  26. # 不动产报告页面接口
  27. location /house-car/house/report/api {
  28. proxy_pass http://172.16.107.4:39202;
  29. }
  30. # 不动产报告页面
  31. location /house-car/house/report {
  32. rewrite ^/house-car/house/report/(.*)$ /$1 break;
  33. proxy_pass http://172.16.107.4:39202;
  34. }
  35. # 车辆报告页面接口
  36. location /house-car/car/report/api {
  37. proxy_pass http://172.16.107.4:39203;
  38. }
  39. # 车辆报告报告页面
  40. location /house-car/car/report {
  41. rewrite ^/house-car/car/report/(.*)$ /$1 break;
  42. proxy_pass http://172.16.107.4:39203;
  43. }
  44. # 不动产系统
  45. location /house-car/house/dist/ {
  46. proxy_pass http://172.16.107.4:39089/house/dist/;
  47. }
  48. #error_page 404 /404.html;
  49. # redirect server error pages to the static page /50x.html
  50. #
  51. error_page 500 502 503 504 /50x.html;
  52. location = /50x.html {
  53. root /usr/share/nginx/html;
  54. }
  55. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  56. #
  57. #location ~ \.php$ {
  58. # proxy_pass http://127.0.0.1;
  59. #}
  60. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  61. #
  62. #location ~ \.php$ {
  63. # root html;
  64. # fastcgi_pass 127.0.0.1:9000;
  65. # fastcgi_index index.php;
  66. # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  67. # include fastcgi_params;
  68. #}
  69. # deny access to .htaccess files, if Apache's document root
  70. # concurs with nginx's one
  71. #
  72. #location ~ /\.ht {
  73. # deny all;
  74. #}
  75. }