pull/88/head
parent
13d34a025b
commit
d181f19458
|
@ -212,7 +212,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
speedTest: {
|
speedTest: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
interval: 60000,
|
interval: 160000,
|
||||||
hostnameList: ['github.com'],
|
hostnameList: ['github.com'],
|
||||||
dnsProviders: ['usa', 'quad9', 'rubyfish']
|
dnsProviders: ['usa', 'quad9', 'rubyfish']
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,10 +13,14 @@ module.exports = (config) => {
|
||||||
const serverConfig = config
|
const serverConfig = config
|
||||||
const setting = serverConfig.setting
|
const setting = serverConfig.setting
|
||||||
|
|
||||||
|
if (!setting.script.dirAbsolutePath) {
|
||||||
setting.script.dirAbsolutePath = path.join(setting.rootDir, setting.script.defaultDir)
|
setting.script.dirAbsolutePath = path.join(setting.rootDir, setting.script.defaultDir)
|
||||||
|
}
|
||||||
|
|
||||||
const overwallConfig = serverConfig.plugin.overwall
|
const overwallConfig = serverConfig.plugin.overwall
|
||||||
|
if (!overwallConfig.pac.pacFileAbsolutePath) {
|
||||||
overwallConfig.pac.pacFileAbsolutePath = path.join(setting.rootDir, overwallConfig.pac.pacFilePath)
|
overwallConfig.pac.pacFileAbsolutePath = path.join(setting.rootDir, overwallConfig.pac.pacFilePath)
|
||||||
|
}
|
||||||
const overwallMiddleware = createOverwallMiddleware(overwallConfig)
|
const overwallMiddleware = createOverwallMiddleware(overwallConfig)
|
||||||
const middlewares = []
|
const middlewares = []
|
||||||
if (overwallMiddleware) {
|
if (overwallMiddleware) {
|
||||||
|
|
Loading…
Reference in New Issue