knowledge_labeling_ui.conf 645 B

1234567891011121314151617181920212223242526272829
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server;
  4. # server_name knowledge_labeling.seec.seecoder.cn;
  5. root /var/www/html/dist;
  6. # 匹配 api 路由的反向代理到API服务
  7. location ^~/bok {
  8. proxy_pass http://bok.seec.seecoder.cn/;
  9. }
  10. location ^~/neo {
  11. proxy_pass http://bok-neo-frontend.seecoder.cn/;
  12. }
  13. #根据路由设置,避免出现404
  14. location / {
  15. try_files $uri $uri/ @router;
  16. index index.html;
  17. }
  18. location @router {
  19. rewrite ^.*$ /index.html last;
  20. }
  21. # error_page 500 502 503 504 /50x.html;
  22. # location = /50x.html {
  23. # root html;
  24. # }
  25. }