-
Notifications
You must be signed in to change notification settings - Fork 60k
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
[Bug] 更新Docker镜像到2.12.3之后,无法使用PROXY_URL字段 #4747
Comments
Title: [Bug] After updating the Docker image to 2.12.3, the PROXY_URL field cannot be used |
@liu0050 @yangxiang92 would you mind try rebuild the latest commit's docker image to see whether the issue have been resolved? |
I have rebuild docker image with the latest commit of "main" branch (commit id: 3866448). |
Just remove the quotes from the |
But I need the proxy to access the OpenAI server... |
Yes, that's the right fix for proxy... |
Sorry, I misunderstood your meaning. Removing the quotes solves this issue! Thank you! For reference, here is the modified content: CMD if [ -n "$PROXY_URL" ]; then \
export HOSTNAME="127.0.0.1"; \
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 --host 0.0.0.0; \
else \
node server.js; \
fi |
Bug Description
更新Docker镜像到2.12.3之后,使用PROXY_URL字段,容器无法正常运行。去掉PROXY_URL字段后,容器可以正常运行。
Steps to Reproduce
运行脚本
访问http://localhost:3002 ,得到结果如下:
修改脚本为:
访问http://localhost:3002 ,得到结果如下:
Expected Behavior
定义了PROXY_URL后,容器仍可以正常使用。
Screenshots
No response
Deployment Method
Desktop OS
Ubuntu
Desktop Browser
Chrome
Desktop Browser Version
Version 122.0.6261.111 (Official Build) (64-bit)
Smartphone Device
No response
Smartphone OS
No response
Smartphone Browser
No response
Smartphone Browser Version
No response
Additional Logs
No response
The text was updated successfully, but these errors were encountered: