8000.conf 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. #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/car/resource-map/api {
  46. proxy_pass http://172.16.107.4:39204;
  47. }
  48. # 车辆资源地图页面
  49. location /house-car/car/resource-map {
  50. rewrite ^/house-car/car/resource-map/(.*)$ /$1 break;
  51. proxy_pass http://172.16.107.4:39204;
  52. }
  53. # 不动产系统
  54. location /house-car/house/dist/ {
  55. proxy_pass http://172.16.107.4:39089/house/dist/;
  56. }
  57. #error_page 404 /404.html;
  58. # redirect server error pages to the static page /50x.html
  59. #
  60. error_page 500 502 503 504 /50x.html;
  61. location = /50x.html {
  62. root /usr/share/nginx/html;
  63. }
  64. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  65. #
  66. #location ~ \.php$ {
  67. # proxy_pass http://127.0.0.1;
  68. #}
  69. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  70. #
  71. #location ~ \.php$ {
  72. # root html;
  73. # fastcgi_pass 127.0.0.1:9000;
  74. # fastcgi_index index.php;
  75. # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  76. # include fastcgi_params;
  77. #}
  78. # deny access to .htaccess files, if Apache's document root
  79. # concurs with nginx's one
  80. #
  81. #location ~ /\.ht {
  82. # deny all;
  83. #}
  84. }