nginx.conf 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. worker_processes 1;
  2. events {
  3. worker_connections 1024;
  4. }
  5. http {
  6. include mime.types;
  7. default_type application/octet-stream;
  8. sendfile on;
  9. keepalive_timeout 65;
  10. client_max_body_size 50m;
  11. server {
  12. listen 81;
  13. server_name 120.46.159.163;
  14. # ssl_certificate /home/nginx/html/dms-supplier/ssl/www.dljpwx.com.crt;
  15. # ssl_certificate_key /home/nginx/html/dms-supplier/ssl/www.dljpwx.com.key;
  16. # ssl_session_cache shared:SSL:1m;
  17. # ssl_ciphers HIGH:!aNULL:!MD5;
  18. # ssl_prefer_server_ciphers on;
  19. location / {
  20. root /home/nginx/html/dms-supplier/dist;
  21. try_files $uri $uri/ /index.html;
  22. index index.html index.htm;
  23. }
  24. location /ezhizao-dms-sys/{
  25. proxy_set_header Host $http_host;
  26. proxy_set_header X-Real-IP $remote_addr;
  27. proxy_set_header REMOTE-HOST $remote_addr;
  28. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  29. proxy_pass http://120.46.159.163:7001/;
  30. }
  31. location /ezhizao-dms-p2/{
  32. proxy_set_header Host $http_host;
  33. proxy_set_header X-Real-IP $remote_addr;
  34. proxy_set_header REMOTE-HOST $remote_addr;
  35. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  36. proxy_pass http://120.46.159.163:7002/;
  37. }
  38. location /ezhizao-dms-production/{
  39. proxy_set_header Host $http_host;
  40. proxy_set_header X-Real-IP $remote_addr;
  41. proxy_set_header REMOTE-HOST $remote_addr;
  42. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  43. proxy_pass http://120.46.159.163:7003/;
  44. }
  45. location /ezhizao-dms-app/{
  46. proxy_set_header Host $http_host;
  47. proxy_set_header X-Real-IP $remote_addr;
  48. proxy_set_header REMOTE-HOST $remote_addr;
  49. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  50. proxy_pass http://120.46.159.163:7004/;
  51. }
  52. location /ezhizao-dms-supplier-api/{
  53. proxy_set_header Host $http_host;
  54. proxy_set_header X-Real-IP $remote_addr;
  55. proxy_set_header REMOTE-HOST $remote_addr;
  56. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  57. proxy_pass http://120.46.159.163:7005/;
  58. }
  59. error_page 500 502 503 504 /50x.html;
  60. location = /50x.html {
  61. root html;
  62. }
  63. }
  64. }