Skip to content

Commit

Permalink
docs: 完善proxy模式文档
Browse files Browse the repository at this point in the history
  • Loading branch information
weaigc committed Nov 11, 2023
1 parent 2b00876 commit e584947
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ npm run start
```bash
docker pull weaigc/bingo
docker run --rm -it -p 7860:7860 weaigc/bingo
# 或者
# 如果不能正常使用,可以尝试设置环境变量 BING_HEADER
docker run --rm -it -e BING_HEADER=xxxx -p 7860:7860 weaigc/bingo
# 如果还是不行,可以尝试 proxy 模式
```

## 如何获取 BING_HEADER
Expand Down
2 changes: 1 addition & 1 deletion cloudflare/worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const TARGET_HOST = 'bing.github1s.tk'
const TARGET_HOST = 'copilot.github1s.tk'

const handlers = {
async fetch(request, env = {}) {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"dev": "cross-env DEBUG=bingo* NODE_ENV=development node ./server.js",
"build": "next build",
"proxy": "node ./cloudflare/cli.js",
"start": "cross-env NODE_ENV=production node ./server.js",
"lint": "next lint"
},
Expand Down

0 comments on commit e584947

Please sign in to comment.