default 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. server {
  2. listen 80;
  3. server_name 192.168.31.157; #改成对应的HOST
  4. location /Bug {
  5. proxy_pass http://crowd-service-backend-api;
  6. }
  7. location ^~ /dashboard/ {
  8. proxy_pass http://192.168.31.157:6666;
  9. #return 404;
  10. }
  11. location ^~ /static/ {
  12. proxy_pass http://192.168.31.157:6666;
  13. }
  14. location /QC {
  15. proxy_pass http://127.0.0.1:8080;
  16. }
  17. location /var {
  18. root /;
  19. index index.html index.htm;
  20. }
  21. # location ^~ /document/ {
  22. # alias /back_end/document/; # 文件存放目录,注意要以 '/' 结尾;
  23. # index index.html; # 如果文件存放目录有 index.html,会跳转到 index.html;
  24. # autoindex on; # 自动列出目录下的文件;
  25. # autoindex_exact_size off; # 文件大小按 G、M 的格式显示,而不是 Bytes;
  26. # }
  27. # location ^~ /resourceXinchuang/ {
  28. # alias /Users/hannatao/Downloads/; # 文件存放目录,注意要以 '/' 结尾;
  29. # index index.html; # 如果文件存放目录有 index.html,会跳转到 index.html;
  30. # autoindex on; # 自动列出目录下的文件;
  31. # autoindex_exact_size off; # 文件大小按 G、M 的格式显示,而不是 Bytes;
  32. # }
  33. location / {
  34. proxy_pass http://192.168.31.157:5555;
  35. #return 404;
  36. }
  37. }
  38. server {
  39. listen 5555;
  40. server_name 192.168.31.157;
  41. location / {
  42. root /usr/share/nginx/html/;
  43. index index.html;
  44. try_files $uri $uri/ /index.html;
  45. }
  46. }
  47. server {
  48. listen 6666;
  49. server_name 192.168.31.157;
  50. location / {
  51. root /databoard/dist/;
  52. index index.html;
  53. try_files $uri $uri/ /index.html;
  54. }
  55. }