Comments (7)
Replace the Dockerfile's last section to
CMD if [ -n "$PROXY_URL" ]; then \
export HOSTNAME="0.0.0.0"; \
protocol=$(echo $PROXY_URL | cut -d: -f1); \
host=$(echo $PROXY_URL | cut -d/ -f3 | cut -d: -f1); \
port=$(echo $PROXY_URL | cut -d: -f3); \
conf=/etc/proxychains.conf; \
echo "strict_chain" > $conf; \
echo "proxy_dns" >> $conf; \
echo "remote_dns_subnet 224" >> $conf; \
echo "tcp_read_time_out 15000" >> $conf; \
echo "tcp_connect_time_out 8000" >> $conf; \
echo "localnet 127.0.0.0/255.0.0.0" >> $conf; \
echo "localnet ::1/128" >> $conf; \
echo "[ProxyList]" >> $conf; \
echo "$protocol $host $port" >> $conf; \
cat /etc/proxychains.conf; \
proxychains -f $conf node server.js; \
else \
node server.js; \
fi
and build the image yourself. It could be resolved.
from chatgpt-next-web.
Bot detected the issue body's language is not English, translate it automatically.
Title: [Bug] 2.12.3 Unable to access after deployment using PROXY_URL
Bug Description
The same docker-compose configuration can run normally with version 2.12.2, but not with 2.12.3.
Using 2.12.3 to remove PROXY_URL can also run normally.
Steps to Reproduce
Use the following compose.yaml deployment and change the version number to reproduce
services:
clash:
image: dreamacro/clash-premium
volumes:
- ./WgetCloud.yaml:/root/.config/clash/config.yaml
restart: unless-stopped
networks:
net1:
ipv4_address: 172.28.0.2
expose:
- "9990"
ports:
- 9990:9990
chatgpt-next-web:
image: yidadaa/chatgpt-next-web:v2.12.2
environment:
OPENAI_API_KEY: ${OPENAI_API_KEY}
CODE: ${CHATGPT_NEXT_WEB_CODE}
PROXY_URL: http://172.28.0.2:9990
expose:
- "3000"
ports:
- 9800:3000
networks:
net1:
ipv4_address: 172.28.0.3
networks:
net1:
driver:bridge
ipam:
driver:default
config:
- subnet: 172.28.0.0/16
gateway: 172.28.0.1
Expected Behavior
2.12.3 Can be run using PROXY_URL
Screenshots
No response
Deployment Method
- Docker
- Vercel
- Server
Desktop OS
No response
Desktop Browser
No response
Desktop Browser Version
No response
Smartphone Device
No response
Smartphone OS
No response
Smartphone Browser
No response
Smartphone Browser Version
No response
Additional Logs
No response
from chatgpt-next-web.
from chatgpt-next-web.
我用最新的也报错了
from chatgpt-next-web.
Bot detected the issue body's language is not English, translate it automatically.
I used the latest one and got an error.
from chatgpt-next-web.
更新2.11.4后使用代理仍然无法访问,相同配置在2.11.2中是正常的
from chatgpt-next-web.
Bot detected the issue body's language is not English, translate it automatically.
After updating to 2.11.4, the proxy is still inaccessible. The same configuration is normal in 2.11.2.
from chatgpt-next-web.
Related Issues (20)
- [Feature Request] Allow changing the model used by "Auto Generate Title"
- 希望【设置】模型服务商选项,增加 ollama本地大模型 选项 HOT 3
- [Bug] 自定义 BASE_URL 无法使用自定义路径 HOT 2
- [Bug] docker默认部署的是旧版本? HOT 1
- v2.15.0 ? v2.14.2 ? HOT 4
- [Bug] markdown Mermaid 无法使用 HOT 1
- [Bug] v2.15.0 "message": "Cannot read properties of undefined (reading 'map')" HOT 4
- [Feature Request] Using tauri http api in App HOT 3
- [Feature Request] 能实现把图片上传到插件中的图床的功能吗 HOT 5
- [Bug] V2.15.0 gpt-4o-mini无法使用 HOT 2
- [Feature Request] 能否加入通过插件分析PDF的功能 HOT 11
- [Bug] [Chat] failed TypeError: Cannot read properties of undefined (reading 'map') when switching between diff-brand Models in a Mask HOT 2
- [Bug] HOT 2
- [Bug] 自定义接口,使用豆包模型接口地址错误 HOT 3
- [Feature Request] nextchat 相比其他产品,最明显的优点是:Local First + Smallest + Smoothest,却没有在宣传网站和readme中体现 HOT 2
- [Bug] 弹窗组件会先展示一个滚动条,然后又消失,样式和文案会在1s内抖动 HOT 2
- [讨论] local-first 实现的 Plugin System 有何优势? HOT 15
- Czat HOT 2
- [Bug] MacOS desktop app v2.15.1 UpStash sync error
- [Bug] 模型通过什么什么服务商来访问应该可以自定义,而不是固定 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt-next-web.