Dooy / chatgpt-web-midjourney-proxy

One UI is all done with chatgpt web, midjourney, gpts,suno,luma,runway,viggle,flux,ideogram,realtime,pika; Simultaneous support Web / PWA / Linux / Win / MacOS platform
https://vercel.ddaiai.com
MIT License
5.27k stars 1.35k forks source link

AUTH_SECRET_KEY is not defined #103

Closed superDaian closed 9 months ago

superDaian commented 9 months ago

作者大佬您好,我在尝试部署您的项目时发现出现了一个问题,无法配置AUTH_SECRET_KEY字段来为web前端设置访问密码,报错内容如下:

AUTH_SECRET_KEY ^ ReferenceError: AUTH_SECRET_KEY is not defined at eval:1:1 at runScriptInThisContext (node:internal/vm:144:10) at node:internal/process/execution:109:14 at eval-wrapper:6:24 at runScript (node:internal/process/execution:92:62) at evalScript (node:internal/process/execution:123:10) at node:internal/main/eval_string:51:3 Node.js v20.11.0

Dooy commented 9 months ago

是docker 么? 啥环境

superDaian commented 9 months ago

对的,docker环境

Dooy commented 9 months ago

解决了否 ? docker 启动命令 说下

superDaian commented 9 months ago

尚未解决,排查不出问题所在

superDaian commented 9 months ago

docker run --name chatgpt-web-midjourney-proxy -d -p 60124:3002 -e OPENAI_API_KEY=<密钥> -e OPENAI_API_BASE_URL=<接口> -e MJ_SERVER=https://172.17.0.1:6013/ -e API_UPLOADER=1 -v /data/uploads:/app/uploads -e MJ_API_SECRET=abc123456 ydlhero/chatgpt-web-midjourney-proxy -e AUTH_SECRET_KEY=hzNwi 报错信息为:

AUTH_SECRET_KEY=hzNwi ^ ReferenceError: hzNwi is not defined at eval:1:1 at runScriptInThisContext (node:internal/vm:144:10) at node:internal/process/execution:109:14 at eval-wrapper:6:24 at runScript (node:internal/process/execution:92:62) at evalScript (node:internal/process/execution:123:10) at node:internal/main/eval_string:51:3 Node.js v20.11.0

删掉最后的"-e AUTH_SECRET_KEY=hzNwi"部分就正常了

Dooy commented 9 months ago

docker run --name chatgpt-web-midjourney-proxy -d -p 60124:3002 -e OPENAI_API_KEY=<密钥> -e OPENAI_API_BASE_URL=<接口> -e MJ_SERVER=https://172.17.0.1:6013/ -e API_UPLOADER=1 -v /data/uploads:/app/uploads -e MJ_API_SECRET=abc123456 -e AUTH_SECRET_KEY=hzNwi ydlhero/chatgpt-web-midjourney-proxy

位置放错了