NextChat icon indicating copy to clipboard operation
NextChat copied to clipboard

[Bug] 更新Docker镜像到2.12.3之后,无法使用PROXY_URL字段

Open yangxiang92 opened this issue 9 months ago • 3 comments

Bug Description

更新Docker镜像到2.12.3之后,使用PROXY_URL字段,容器无法正常运行。去掉PROXY_URL字段后,容器可以正常运行。

Steps to Reproduce

运行脚本

docker run -d -p 3002:3000 \
    -e OPENAI_API_KEY=${API_KEY} \
    -e CODE="aaaaaa" \
    -e PROXY_URL="socks5://192.168.0.245:7890" \
    -e CUSTOM_MODELS="-all,+gpt-3.5-turbo,+gpt-4-turbo,+gpt-4o" \
    -e HIDE_USER_API_KEY=1 \
    --name chatgpt_next_web_test \
    --restart always \
    yidadaa/chatgpt-next-web

访问http://localhost:3002 ,得到结果如下:

image

修改脚本为:

docker run -d -p 3002:3000 \
    -e OPENAI_API_KEY=${API_KEY} \
    -e CODE="aaaaaa" \
    -e CUSTOM_MODELS="-all,+gpt-3.5-turbo,+gpt-4-turbo,+gpt-4o" \
    -e HIDE_USER_API_KEY=1 \
    --name chatgpt_next_web_test \
    --restart always \
    yidadaa/chatgpt-next-web

访问http://localhost:3002 ,得到结果如下:

image

Expected Behavior

定义了PROXY_URL后,容器仍可以正常使用。

Screenshots

No response

Deployment Method

  • [X] Docker
  • [ ] Vercel
  • [ ] Server

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

yangxiang92 avatar May 21 '24 04:05 yangxiang92