- 静态文件路由
- 静态文件上传
- 文件查询
-
curl方式
curl --form '/static/yarn.lock=@/xxx/simple-cdn-server/yarn.lock' --form 'path=xxxx' http://localhost:3030/upload
-
js方式
见文件
examples/upload.js
需要pm2
环境
sh deploy.sh
mock cdn server, upload file and serve files after uploaded