| 1234567891011121314151617181920212223242526272829 |
- server {
- listen 80 default_server;
- listen [::]:80 default_server;
- # server_name knowledge_labeling.seec.seecoder.cn;
- root /var/www/html/dist;
- # 匹配 api 路由的反向代理到API服务
- location ^~/bok {
- proxy_pass http://bok.seec.seecoder.cn/;
- }
- location ^~/neo {
- proxy_pass http://bok-neo-frontend.seecoder.cn/;
- }
- #根据路由设置,避免出现404
- location / {
- try_files $uri $uri/ @router;
- index index.html;
- }
- location @router {
- rewrite ^.*$ /index.html last;
- }
- # error_page 500 502 503 504 /50x.html;
- # location = /50x.html {
- # root html;
- # }
- }
|