LobeChat 因授权问题无法连接至MinIO服务器 #4137
-
Discussed in #3988Originally posted by AkarinLiu September 16, 2024
|
Beta Was this translation helpful? Give feedback.
Replies: 6 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.
-
I found a similar unsolved discussion regarding authorization issues with MinIO: LobeChat 因授权问题无法连接至MinIO服务器 [1]. To resolve the "UNAUTHORIZED" error when trying to connect LobeChat to the MinIO server, ensure that you have correctly configured the access keys and bucket policies in your
Ensure that you do not use Additionally, if you are using Cloudflare R2 as your S3 storage service, make sure to configure the environment variables and CORS settings correctly: Obtain Environment Variables for the Bucket# Bucket name
S3_BUCKET=lobechat
# Request endpoint of the bucket (note that the path in this link includes the bucket name, which must be removed, or use the link provided on the page for applying S3 API token)
S3_ENDPOINT=https://0b33a03b5c993fd2f453379dc36558e5.r2.cloudflarestorage.com
# Access domain of the bucket
S3_PUBLIC_DOMAIN=https://s3-for-lobechat.your-domain.com Obtain S3 Key Environment VariablesS3_ACCESS_KEY_ID=9998d6757e276cf9f1edbd325b7083a6
S3_SECRET_ACCESS_KEY=55af75d8eb6b99f189f6a35f855336ea62cd9c4751a5cf4337c53c1d3f497ac2 Configure Cross-Origin Resource Sharing (CORS)[
{
"AllowedOrigins": ["https://your-project.vercel.app"],
"AllowedMethods": ["GET", "PUT", "HEAD", "POST", "DELETE"],
"AllowedHeaders": ["*"]
}
] After configuration, click save [4]. |
Beta Was this translation helpful? Give feedback.
-
你没设置登录系统,数据库版必须要有个登录系统,没有登录系统就会一直授权失败 |
Beta Was this translation helpful? Give feedback.
-
You have not set up a login system. The database version must have a login system. Without a login system, authorization will continue to fail. |
Beta Was this translation helpful? Give feedback.
-
是否可以通过配置环境变量跳过身份认证这个环节 |
Beta Was this translation helpful? Give feedback.
-
Is it possible to skip the identity authentication step by configuring environment variables? |
Beta Was this translation helpful? Give feedback.
你没设置登录系统,数据库版必须要有个登录系统,没有登录系统就会一直授权失败