-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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] 更新文档 #3386
Comments
👀 @ykangw Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
服务端 Database 的镜像会单独打出来,所以再耐心等待一会 |
The image of the server database will be printed separately, so wait patiently for a while. |
先在这里列一个极简示例吧,文档需要做一次结构调整,还要点时间。
# DB 必须
KEY_VAULTS_SECRET=jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk=
DATABASE_URL=postgres://postgres:mysecretpassword@my-postgres:5432/postgres
# NEXT_AUTH 相关
NEXT_AUTH_SECRET=3904039cd41ea1bdf6c93db0db96e250
NEXT_AUTH_SSO_PROVIDERS=auth0
NEXTAUTH_URL=https://your-prod-domain.com/api/auth
AUTH0_CLIENT_ID=xxxxxx
AUTH0_CLIENT_SECRET=cSX_xxxxx
AUTH0_ISSUER=https://lobe-chat-demo.us.auth0.com
# S3 相关
S3_ACCESS_KEY_ID=xxxxxxxxxx
S3_SECRET_ACCESS_KEY=xxxxxxxxxx
S3_ENDPOINT=https://xxxxxxxxxx.r2.cloudflarestorage.com
S3_BUCKET=lobechat
NEXT_PUBLIC_S3_DOMAIN=https://s3-for-lobechat.your-domain.com
docker run -it -d -p 3210:3210 --network pg --env-file lobe-chat.env lobehub/lobe-chat-database |
Let’s list a minimalist example here first. The document needs a structural adjustment, which will take some time.
# DB required
KEY_VAULTS_SECRET=jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk=
DATABASE_URL=postgres://postgres:mysecretpassword@my-postgres:5432/postgres
# NEXT_AUTH related
NEXT_AUTH_SECRET=3904039cd41ea1bdf6c93db0db96e250
NEXT_AUTH_SSO_PROVIDERS=auth0
NEXTAUTH_URL=https://your-prod-domain.com/api/auth
AUTH0_CLIENT_ID=xxxxxx
AUTH0_CLIENT_SECRET=cSX_xxxxx
AUTH0_ISSUER=https://lobe-chat-demo.us.auth0.com
# S3 related
S3_ACCESS_KEY_ID=xxxxxxxxxx
S3_SECRET_ACCESS_KEY=xxxxxxxxxx
S3_ENDPOINT=https://xxxxxxxxxx.r2.cloudflarestorage.com
S3_BUCKET=lobechat
NEXT_PUBLIC_S3_DOMAIN=https://s3-for-lobechat.your-domain.com
docker run -it -d -p 3210:3210 --network pg --env-file lobe-chat.env lobehub/lobe-chat-database |
✅ @ykangw This issue is closed, If you have any questions, you can comment and reply. |
你好,这个 BUG 仍然复现吗? 您使用了哪些环境变量呢? 我使用以下环境变量时没有出现问题。 NEXT_AUTH_SECRET=
AUTH0_CLIENT_ID=
AUTH0_CLIENT_SECRET=
AUTH0_ISSUER=https://*.auth0.com
|
Hello, is this bug still reoccurring? What environment variables did you use? I use the following environment variables without issue. NEXT_AUTH_SECRET=
AUTH0_CLIENT_ID=
AUTH0_CLIENT_SECRET=
AUTH0_ISSUER=https://*.auth0.com
|
你好,经过检查,是我的next auth设置不对,经过修正,已经可以使用azure ad正常进行sso登陆。非常感谢! |
Hello, after checking, it was found that my next auth settings were incorrect. After correction, I can now use Azure AD for normal SSO login. Thank you so much! |
KEY_VAULTS_SECRET=jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk= |
KEY_VAULTS_SECRET=jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk= |
📦 Environment
Vercel
📌 Version
1.8.0
💻 Operating System
macOS
🌐 Browser
Chrome
🐛 Bug Description
Lobe在1.8.0版本已支持基于NextAuth的服务器端数据库,但是文档还没有更新。使用当前的文档,很难正确配置NextAuth和服务器端数据库。
此外,如果只想使用NextAuth作为身份验证,而不使用服务器端数据库,对照当前文档的“身份验证”部分配置环境变量后,不显示SSO登陆界面的问题仍然没有解决 #3136
希望确认,这是一个bug,还是文档中的环境变量没有更新。
📷 Recurrence Steps
No response
🚦 Expected Behavior
希望更新文档“私有化部署”中关于“服务器端数据库”和“身份验证”部分的内容。
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: