防护:添加人数过多防护措施
This commit is contained in:
@@ -25,6 +25,10 @@ export default class FooBoot implements IBoot {
|
||||
if(this.app.config.env == 'local') {
|
||||
this.app.config.realEnv = 'development';
|
||||
}
|
||||
// 如果gm使用的就是本机代理,host不转发到target而只把path替换
|
||||
if(this.app.config.httpProxy && this.app.config.httpProxy[`/web/${this.app.config.realEnv}/`]) {
|
||||
this.app.config.httpProxy[`/web/${this.app.config.realEnv}/`].changeOrigin = false;
|
||||
}
|
||||
this.connectThinkingData(this.app);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user