Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update conf.js #247

Open
wants to merge 3 commits into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<html><head><meta charset=utf-8></head><body id=t><svg xmlns=http://www.w3.org/2000/svg width=100% height=100% viewBox="0 0 100 100"preserveAspectRatio=xMidYMid fill=none><circle cx=50 cy=50 r=25.944 stroke=#93dbe9><animate attributeName=r calcMode=spline values=0;40 keyTimes=0;1 dur=1 keySplines="0 0.2 0.8 1"begin=-0.5s repeatCount=indefinite stroke-width=2 /><animate attributeName=opacity calcMode=spline values=1;0 keyTimes=0;1 dur=1 keySplines="0.2 0 0.8 1"begin=-0.5s repeatCount=indefinite stroke-width=2 /></circle><circle cx=50 cy=50 r=40 stroke=#689cc5><animate attributeName=r calcMode=spline values=0;40 keyTimes=0;1 dur=1 keySplines="0 0.2 0.8 1"begin=0s repeatCount=indefinite stroke-width=2 /><animate attributeName=opacity calcMode=spline values=1;0 keyTimes=0;1 dur=1 keySplines="0.2 0 0.8 1"begin=0s repeatCount=indefinite stroke-width=2 /></circle></svg><script>function n(){var e=Date.now();try{var t=+sessionStorage._ts||0;if((sessionStorage._ts=e)-t<100)return setTimeout(n,5e3)}catch(r){}location.reload()}function r(e){o(e.message)}function o(e){t.innerHTML=e}!function s(){if(self.isSecureContext){var e=navigator.serviceWorker;e&&self.AbortController?e.register(function t(){return location.pathname.replace(/\/-+https?:.+/,"").replace(/\w+\.\w+$/,"").replace(/\/*$/,"/")}()+"sw.js").then(n)["catch"](r):o("请使用最新版 Chrome 浏览器访问")}else o("本程序需要 HTTPS 站点")}()</script></body></html>
<html><head><meta charset=utf-8></head><body id=t><svg xmlns=http://www.w3.org/2000/svg width=100% height=100% viewBox="0 0 100 100"preserveAspectRatio=xMidYMid fill=none><circle cx=50 cy=50 r=25.944 stroke=#93dbe9><animate attributeName=r calcMode=spline values=0;40 keyTimes=0;1 dur=1 keySplines="0 0.2 0.8 1"begin=-0.5s repeatCount=indefinite stroke-width=2 /><animate attributeName=opacity calcMode=spline values=1;0 keyTimes=0;1 dur=1 keySplines="0.2 0 0.8 1"begin=-0.5s repeatCount=indefinite stroke-width=2 /></circle><circle cx=50 cy=50 r=40 stroke=#689cc5><animate attributeName=r calcMode=spline values=0;40 keyTimes=0;1 dur=1 keySplines="0 0.2 0.8 1"begin=0s repeatCount=indefinite stroke-width=2 /><animate attributeName=opacity calcMode=spline values=1;0 keyTimes=0;1 dur=1 keySplines="0.2 0 0.8 1"begin=0s repeatCount=indefinite stroke-width=2 /></circle></svg><script>function a(){var e=Date.now();try{var t=+sessionStorage._ts||0;if((sessionStorage._ts=e)-t<100)return setTimeout(a,5e3)}catch(r){}location.reload()}function i(e){n(e.message)}function n(e){t.innerHTML=e}!function s(){if(self.isSecureContext)if(self.ReadableStream){var e=navigator.serviceWorker;if(e)e.register(function r(){return location.pathname.replace(/\/-+https?:.+/,"").replace(/\w+\.\w+$/,"").replace(/\/*$/,"/")}()+"sw.js").then(a)["catch"](i);else{var t=navigator.userAgent;/Firefox/.test(t)?n("本网站不支持 FireFox 隐身模式"):/iPhone|iPad/.test(t)&&n("iOS 上请使用 Safari 浏览器")}}else n("请使用最新的 HTML5 浏览器");else n("本程序需要 HTTPS 站点")}()</script></body></html>
37 changes: 22 additions & 15 deletions conf.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
jsproxy_config({
// 当前配置的版本(记录在日志中,用于排查问题)
ver: '78',
// 当前配置的版本(记录在日志中,用于排查问题)11111111
// 每次修改配置,该值需要增加,否则不会生效。
// 默认每隔 5 分钟自动下载配置,若想立即验证,可通过隐私模式访问。
ver: '110',

// 通过 CDN 加速常用网站的静态资源(实验中)
static_boost: {
enable: true,
ver: 20
ver: 62
},

// 节点配置
Expand All @@ -14,9 +16,8 @@ jsproxy_config({
label: '演示服务-香港节点',
lines: {
// 主机:权重
'node-aliyun-hk-0.etherdream.com:8443': 1,
'node-aliyun-hk-1.etherdream.com:8443': 1,
'node-aliyun-hk-2.etherdream.com:8443': 1,
'node-aliyun-hk-2.etherdream.com:8443': 2,
}
},
'demo-sg': {
Expand All @@ -37,23 +38,23 @@ jsproxy_config({
hidden: true,
lines: {
// 收费版(高权重)
'node-cfworker.etherdream.com': 6,
//'node-cfworker-2.etherdream.com': 4,

// 免费版(低权重,分摊一些成本)
// 每个账号每天 10 万次免费请求,但有频率限制
'a.007.workers.dev': 1,
'a.hehe.workers.dev': 1,
'a.lulu.workers.dev': 1,
'shrill-unit-8594.jsproxy.workers.dev': 1,
//'b.007.workers.dev': 1,
//'b.hehe.workers.dev': 1,
//'b.lulu.workers.dev': 1,
//'b.jsproxy.workers.dev': 1,
}
}
},

/**
* 默认节点
*/
// node_default: 'mysite',
node_default: /jsproxy\.\w+$/.test(location.host) ? 'demo-hk' : 'mysite',
node_default: 'mysite',
// node_default: /jsproxy-demo\.\w+$/.test(location.host) ? 'demo-hk' : 'mysite',

/**
* 加速节点
Expand All @@ -64,10 +65,16 @@ jsproxy_config({
* 静态资源 CDN 地址
* 用于加速 `assets` 目录中的资源访问
*/
assets_cdn: 'https://cdn.jsdelivr.net/gh/zjcqoo/zjcqoo.github.io@master/assets/',
// assets_cdn: 'https://cdn.jsdelivr.net/gh/zjcqoo/zjcqoo.github.io@master/assets/',

// 本地测试时打开,否则访问的是线上的
// assets_cdn: 'assets/',
assets_cdn: 'assets/',

// 首页路径
index_path: 'index_v3.html',

// 支持 CORS 的站点列表(实验中...)
direct_host_list: 'cors_v1.txt',

/**
* 自定义注入页面的 HTML
Expand All @@ -88,4 +95,4 @@ jsproxy_config({
content: 'Hello World'
},
}
})
})