Skip to content

Commit

Permalink
refactor: doc
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed Mar 27, 2021
1 parent 9ef3ff2 commit 9d959ba
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
* 此模式:关闭拦截、关闭增强、开启dns优选、开启测速
* 最安全,无需安装证书,可以在浏览器地址栏左侧查看域名证书
* 功能也最弱,只有特性1,相当于查询github的国外ip,手动改hosts一个意思。
* github的可访问性不稳定,取决于IP测速,如果有绿色ip存在,那就**有可能**可以直连访问。
* github的可访问性不稳定,取决于IP测速,如果有绿色ip存在,`有可能` 可以直连访问。
![](./doc/speed.png)

### 默认模式
Expand All @@ -113,11 +113,10 @@

## 最佳实践

把dev-sidecar一直开着就行了
* 把dev-sidecar一直开着就行了
* 建议遇到打开比较慢的国外网站,可以尝试将该域名添加到dns设置中(注意:被GFW封杀的无效)
* 有时候安全模式打开github也挺快

建议遇到打开比较慢的国外网站,可以优先尝试将该域名添加到dns设置中(注意:被GFW封杀的无效)
也可以将域名添加到增强功能的自定义域名配置中,言尽于此。

### 其他加速
1. git clone 加速

Expand Down
5 changes: 3 additions & 2 deletions packages/core/src/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ module.exports = {
desc: 'github的访问速度分析上传,没有必要,直接返回成功'
}
},
'raw.githubusercontent.com': {
'raw.11githubusercontent.com': {
'.*': { proxy: 'raw.fastgit.org' }
},
// 'github.githubassets.com': {
Expand Down Expand Up @@ -193,6 +193,7 @@ module.exports = {
},
mapping: {
// 'assets.fastgit.org': 'usa',
'*githubusercontent.com': 'quad9',
'*yarnpkg.com': 'usa',
'*cloudfront.net': 'usa',
'*github.io': 'usa',
Expand All @@ -203,7 +204,7 @@ module.exports = {
'github.com': 'quad9',
'*github.com': 'usa',
'*.vuepress.vuejs.org': 'usa',
'gh.docmirror.top': 'usa'
'gh.docmirror.top': 'aliyun'
},
speedTest: {
enabled: true,
Expand Down
6 changes: 3 additions & 3 deletions packages/gui/src/view/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
安全模式
</a-radio-button>
</a-tooltip>
<a-tooltip placement="topLeft" title="关闭测速,启用拦截,关闭增强(功能稍强,需要安装证书)">
<a-tooltip placement="topLeft" title="启用测速,启用拦截,关闭增强(功能稍强,需要安装证书)">
<a-radio-button value="default">
默认模式
</a-radio-button>
</a-tooltip>
<a-tooltip placement="topLeft" title="关闭测速,启用增强,启用拦截(敏感原因,默认关闭,感兴趣的话可以私下交流)">
<a-tooltip placement="topLeft" title="关闭测速,启用增强,启用拦截(敏感原因,默认禁用,感兴趣的话可以私下交流)">
<a-radio-button value="ow">
增强模式
</a-radio-button>
Expand Down Expand Up @@ -168,7 +168,7 @@ export default {
this.config.plugin.overwall.enabled = false
} else if (mode === 'default') {
this.config.server.intercept.enabled = true
this.config.server.dns.speedTest.enabled = false
this.config.server.dns.speedTest.enabled = true
this.config.plugin.overwall.enabled = false
} else if (mode === 'ow') {
console.log('event', event)
Expand Down
6 changes: 2 additions & 4 deletions packages/gui/src/view/pages/server.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,8 @@
<a-input :disabled="item.value ===false" v-model="item.key"></a-input>
</a-col>
<a-col :span="5">
<a-select :disabled="item.value ===false" v-model="item.value">
<a-select-option value="usa">USA DNS</a-select-option>
<a-select-option value="aliyun">Aliyun DNS</a-select-option>
<a-select-option value="ipaddress">IpAddress</a-select-option>
<a-select :disabled="item.value ===false" v-model="item.value" style="width: 100%">
<a-select-option v-for="(item) of speedDnsOptions" :key="item.value" :value="item.value">{{item.value}}</a-select-option>
</a-select>
</a-col>
<a-col :span="3">
Expand Down

0 comments on commit 9d959ba

Please sign in to comment.