Skip to content

Commit e584947

Browse files
committed
docs: 完善proxy模式文档
1 parent 2b00876 commit e584947

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,9 @@ npm run start
133133
```bash
134134
docker pull weaigc/bingo
135135
docker run --rm -it -p 7860:7860 weaigc/bingo
136-
# 或者
136+
# 如果不能正常使用,可以尝试设置环境变量 BING_HEADER
137137
docker run --rm -it -e BING_HEADER=xxxx -p 7860:7860 weaigc/bingo
138+
# 如果还是不行,可以尝试 proxy 模式
138139
```
139140

140141
## 如何获取 BING_HEADER

cloudflare/worker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const TARGET_HOST = 'bing.github1s.tk'
1+
const TARGET_HOST = 'copilot.github1s.tk'
22

33
const handlers = {
44
async fetch(request, env = {}) {

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"dev": "cross-env DEBUG=bingo* NODE_ENV=development node ./server.js",
88
"build": "next build",
9+
"proxy": "node ./cloudflare/cli.js",
910
"start": "cross-env NODE_ENV=production node ./server.js",
1011
"lint": "next lint"
1112
},

0 commit comments

Comments
 (0)