Amery2010 / TalkWithGemini

Deploy your private Gemini application for free with one click, supporting Gemini 1.5 Pro, Gemini 1.5 Flash, Gemini Pro and Gemini Pro Vision models. 一键免费部署您的私人 Gemini 应用, 支持 Gemini 1.5 Pro、Gemini 1.5 Flash、Gemini Pro 和 Gemini Pro Vision 模型。
https://gemini.u14.app
GNU General Public License v3.0
704 stars 230 forks source link

Environment variables set in docker deployment do not seem to take effect #2

Closed Downstars closed 6 months ago

Downstars commented 6 months ago

I used docker for deployment and successfully started it,

docker run -d -p 3000:3000 \
   -e GEMINI_API_KEY=AIza****** \
   -e ACCESS_PASSWORD=****** \
   -e NEXT_PUBLIC_ENABLE_PROTECT=0 \
   xiangfa/talk-with-gemini

However, the environment variable parameters I added don't seem to take effect. On the web page, I still have to enter GEMINI_API_KEY to proceed with the Q&A normally, and ACCESS_PASSWORD can be entered with any value.

Amery2010 commented 6 months ago

If ACCESS_PASSWORD is set, NEXT_PUBLIC_ENABLE_PROTECT needs to be set to 1. This is a problem with my document description. I will improve this part of the description later.