Skip to content
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] The environment variable ACCESS_CODE does not take effect in docker deployment #1849

Closed
mengzyou opened this issue Apr 1, 2024 · 6 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@mengzyou
Copy link

mengzyou commented Apr 1, 2024

💻 Operating System

Other Linux

📦 Environment

Docker

🌐 Browser

Chrome

🐛 Bug Description

I ran the lobechat with docker compose environment:

    environment:
      - OPENAI_API_KEY=
      - OPENAI_PROXY_URL=
      - ACCESS_CODE=Lobe666

Then I access the application without access code checking, I can use the chat directly.

🚦 Expected Behavior

Ask me to provide access code when I access the application.

📷 Recurrence Steps

No response

📝 Additional Information

No response

@mengzyou mengzyou added the 🐛 Bug Something isn't working | 缺陷 label Apr 1, 2024
@lobehubbot
Copy link
Member

👀 @mengzyou

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@MapleEve
Copy link
Contributor

MapleEve commented Apr 2, 2024

先检查自己的左下角设置里面是不是已经填了密码
再检查下自己是不是设置过某个模型供应商的独立 Api Key
只有在左下角设置里面都没有设置的情况下,你通过 Docker 预设的 Key 和密码才生效

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


First check whether the password has been filled in in your settings in the lower left corner.
Check again to see if you have set up an independent API Key for a certain model supplier.
The Key and password you preset through Docker will only take effect if there are no settings in the settings in the lower left corner.

@mengzyou
Copy link
Author

mengzyou commented Apr 7, 2024

先检查自己的左下角设置里面是不是已经填了密码 再检查下自己是不是设置过某个模型供应商的独立 Api Key 只有在左下角设置里面都没有设置的情况下,你通过 Docker 预设的 Key 和密码才生效

好的,明白了,我还以为这个ACCESS_KEY会向basic auth一样呢

@mengzyou mengzyou closed this as completed Apr 7, 2024
@lobehubbot
Copy link
Member

@mengzyou

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


First check whether the password has been filled in in the settings in the lower left corner, and then check whether the independent API Key of a certain model supplier has been set. Only if there is no setting in the settings in the lower left corner, you can preset it through Docker The Key and password will take effect

Okay, I understand. I thought this ACCESS_KEY would be the same as basic auth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷
Projects
Archived in project
Development

No branches or pull requests

3 participants