Catch
标签:Mock

easy-mock私有服务器部署

下载easy-mock源码 首先要确保自己已安装了node环境及npm或yarn cd /usr/local git clone https://github.com/easy-mock/easy-mock.git cd easy-mock yarn # 也可以 npm install 静态资源部署到CDN及文件上传目录设置 vim config/default.json 修改如下,注意upload.dir及fe.publicPath { "port": 7300, "host": "0.0.0.0", "pageSize": 30, "proxy": false, "db": "mongodb://localhost/easy-mock", "unsplashClientId": "", "redis": { "keyPrefix": "[Easy Mock]", "port": 6379, "host": "localhost", "password": "", "db": 0 }, "blackList": { "projects": [], "ips": [] }, "rateLimit": { "max": 1000, "duration": 1000 }, "jwt": { "expire": "14 days", "secret": "shared-secret" }, "upload": { "types": [".jpg", ".jpeg", ".png", "

4月前 314浏览