src/config/config.default.ts
@@ -74,8 +74,21 @@ // 文件上传 file: { // 文件路径前缀 本地上传模式下 有效 // domain: 'http://127.0.0.1:8001', domain: 'http://112.74.77.127:9100/hn', domain: 'http://127.0.0.1:8001', }, // redis为插件名称 redis: { host: "127.0.0.1", password: "", port: 6379, db: 0 }, socket: { cors: { // 这里可以写具体的地址如:http://127.0.0.1:8080 origin: '*', methods: ['GET', 'POST'], }, }, } as CoolConfig;