[Bug] 在使用docker在服务器上进阶部署服务时,点击database,跳出弹窗,请进行登录。 #4604
Replies: 12 comments
-
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
📦 Deployment environmentDocker 📌 Software versionKnowledge base version 💻 System environmentOther Linux 🌐 BrowserEdge 🐛 Problem description
📷 Steps to reproduceIn the official documentation, after using Docker to deploy the server database version. https://lobehub.com/zh/docs/self-hosting/server-database/docker Website domain nameAPP_URL=http://xxxxx:3210 DB required environment variablesThe key used to encrypt sensitive information can be generated using openssl rand -base64 32KEY_VAULTS_SECRET='xxxxx' Postgres database connection stringFormat: postgres://username:password@host:port/dbname, if your pg instance is a Docker container, please use the container nameDATABASE_URL=postgres://postgres:mysecretpassword@postgres:5432/postgres NEXT_AUTH related, you can use auth0, Azure AD, GitHub, Authentik, zitadel, etc. If you have other access requirements, please submit a PR.NEXT_AUTH_SECRET='xxxx' S3 relatedS3_ACCESS_KEY_ID=xxxx Domain name used for S3 API accessS3_ENDPOINT=xxxx OPENAI_API_KEY='xxxx' PROXY_URL=http://127.0.0.1:18081 🚦 Expected resultsIt is expected that you can log in normally and implement new functions of the knowledge base 📝 Supplementary informationNo response |
Beta Was this translation helpful? Give feedback.
-
Hello, @BravoDD44! I'm here to help you with any bugs, questions, or contributions you may have. Let's tackle this issue together! The login error you're experiencing when accessing the knowledge base after deploying the server database version using Docker is likely due to the authentication setup. Here are some relevant discussions and solutions:
Make sure your environment variables and authentication settings are correctly configured. If you're using Auth0, verify that the callback URLs and other settings are correctly set up in your Auth0 dashboard. |
Beta Was this translation helpful? Give feedback.
-
我使用的auth0验证方法。设置的Allowed Callback URLs是http(s)://(ip 地址):3210/api/auth/callback/auth0 |
Beta Was this translation helpful? Give feedback.
-
I am using auth0 authentication method. The set Allowed Callback URLs are http(s)://(ip address):3210/api/auth/callback/auth0 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
最新的环境变量配置如下 网站域名APP_URL=http://xxxx:3210 DB 必须的环境变量用于加密敏感信息的密钥,可以使用 openssl rand -base64 32 生成KEY_VAULTS_SECRET=w/CwFP1d0u4cdM/fjqFzqIz30aw+Omfd2PErVpYrbn0= Postgres 数据库连接字符串格式:postgres://username:password@host:port/dbname,如果你的 pg 实例为 Docker 容器,请使用容器名DATABASE_URL=postgres://postgres:mysecretpassword@postgres:5432/postgres NEXT_AUTH 相关,可以使用 auth0、Azure AD、GitHub、Authentik、zitadel 等,如有其他接入诉求欢迎提 PRNEXT_AUTH_SECRET=QV5yLLYWaYiH/ZheWIMfGTRe74j+LiVyHybLYF/3v+0= S3 相关S3_ACCESS_KEY_ID=xxx 用于 S3 API 访问的域名S3_ENDPOINT=https://oss-cn-shanghai.aliyuncs.com OPENAI_API_KEY=xxxx |
Beta Was this translation helpful? Give feedback.
-
After adding https, the error will still be reported. The latest environment variable configuration is as follows Website domain nameAPP_URL=http://xxxx:3210 DB required environment variablesThe key used to encrypt sensitive information can be generated using openssl rand -base64 32KEY_VAULTS_SECRET=w/CwFP1d0u4cdM/fjqFzqIz30aw+Omfd2PErVpYrbn0= Postgres database connection stringFormat: postgres://username:password@host:port/dbname, if your pg instance is a Docker container, please use the container nameDATABASE_URL=postgres://postgres:mysecretpassword@postgres:5432/postgres NEXT_AUTH related, you can use auth0, Azure AD, GitHub, Authentik, zitadel, etc. If you have other access requirements, please submit a PR.NEXT_AUTH_SECRET=QV5yLLYWaYiH/ZheWIMfGTRe74j+LiVyHybLYF/3v+0= S3 relatedS3_ACCESS_KEY_ID=xxx Domain name used for S3 API accessS3_ENDPOINT=https://oss-cn-shanghai.aliyuncs.com OPENAI_API_KEY=xxxx |
Beta Was this translation helpful? Give feedback.
-
页面报错显示callback url有问题 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
📦 部署环境
Docker
📌 软件版本
知识库版本
💻 系统环境
Other Linux
🌐 浏览器
Edge
🐛 问题描述
在官方文档中,进行使用 Docker 部署服务端数据库版后。https://lobehub.com/zh/docs/self-hosting/server-database/docker
在浏览器端打开ip:3210后,点击知识库按钮,弹出未登录,页面报错。
📷 复现步骤
在官方文档中,进行使用 Docker 部署服务端数据库版后。https://lobehub.com/zh/docs/self-hosting/server-database/docker
在浏览器端打开ip:3210后,点击知识库按钮,弹出未登录,页面报错。
环境变量如下:
网站域名
APP_URL=http://xxxxx:3210
DB 必须的环境变量
用于加密敏感信息的密钥,可以使用 openssl rand -base64 32 生成
KEY_VAULTS_SECRET='xxxxx'
Postgres 数据库连接字符串
格式:postgres://username:password@host:port/dbname,如果你的 pg 实例为 Docker 容器,请使用容器名
DATABASE_URL=postgres://postgres:mysecretpassword@postgres:5432/postgres
NEXT_AUTH 相关,可以使用 auth0、Azure AD、GitHub、Authentik、zitadel 等,如有其他接入诉求欢迎提 PR
NEXT_AUTH_SECRET='xxxx'
NEXT_AUTH_SSO_PROVIDERS=auth0
NEXTAUTH_URL=http://8.153.105.15:3210/api/auth
AUTH_AUTH0_ID=xxx
AUTH_AUTH0_SECRET=xxxx
AUTH_AUTH0_ISSUER=dev-bkdrqeyrpygny8qc.us.auth0.com
S3 相关
S3_ACCESS_KEY_ID=xxxx
S3_SECRET_ACCESS_KEY=xxxxx
用于 S3 API 访问的域名
S3_ENDPOINT=xxxx
S3_BUCKET=xxx
S3_REGION=xxxxx # 如果需要指定地域
S3_PUBLIC_DOMAIN=xxxx
OPENAI_API_KEY='xxxx'
OPENAI_PROXY_URL=xxxx
PROXY_URL=http://127.0.0.1:18081
🚦 期望结果
期望可以正常登录,并实现知识库新功能
📝 补充信息
No response
Beta Was this translation helpful? Give feedback.
All reactions