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

国内Docker部署解决Proxy问题 #137

Open
WeYouHe opened this issue Aug 29, 2024 · 2 comments
Open

国内Docker部署解决Proxy问题 #137

WeYouHe opened this issue Aug 29, 2024 · 2 comments

Comments

@WeYouHe
Copy link

WeYouHe commented Aug 29, 2024

很简单一个东西
docker run --network host -d
--name chat2api
-v /root/chatapi/data:/app/data
-e TZ=Asia/Shanghai
-e PROXY_URL=http://YouProxyUrl
lanqian528/chat2api:latest

使用host网络模式时候直接用主机的端口了,不需要设置端口
其他参数根据自己需求配置

docker和docker-compose一样

@isKEKE
Copy link

isKEKE commented Nov 27, 2024

2024-11-27 23:14:33,970 | INFO | Request token is empty, use no-auth 3.5

2024-11-27 23:14:33,970 | INFO | Request token: None

2024-11-27 23:14:33,971 | INFO | Request proxy: http://192.168.1.x:7890

2024-11-27 23:14:33,971 | INFO | Request UA: Mozilla/5.0 (Macintosh; Intel Mac OS X 12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.2792.40 Safari/537.36 Edg/129.0.2792.40

2024-11-27 23:14:33,971 | INFO | Request impersonate: chrome116

2024-11-27 23:14:34,931 | ERROR | --------------------------------------------------

| Throw an exception 403, cf-spinner-please-wait

└------------------------------------------------

很难受,是代理IP的问题吗?

@lanqian528
Copy link
Owner

换ip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants