🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
📝 docs: improve docs (#12013)
Arvin Xu4a87b31246d4
diff --git a/.env.example b/.env.exampleindex 6e0231b9eed..f182b9ee9d9 100644--- a/.env.example+++ b/.env.example@@ -262,9 +262,6 @@ OPENAI_API_KEY=sk-xxxxxxxxx# Bucket request endpoint# S3_ENDPOINT=https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx.r2.cloudflarestorage.com-# Public access domain for the bucket-# S3_PUBLIC_DOMAIN=https://s3-for-lobechat.your-domain.com-# Bucket region, such as us-west-1, generally not needed to add# but some service providers may require configuration# S3_REGION=us-west-1diff --git a/.env.example.development b/.env.example.developmentindex a34832aad87..0f980072bfc 100644--- a/.env.example.development+++ b/.env.example.development@@ -85,9 +85,6 @@ S3_ENDPOINT=http://localhost:${MINIO_PORT}# S3 bucket name for storing filesS3_BUCKET=${MINIO_LOBE_BUCKET}-# Public domain for S3 file access-S3_PUBLIC_DOMAIN=http://localhost:${MINIO_PORT}-# Enable path-style S3 requests (required for MinIO)S3_ENABLE_PATH_STYLE=1diff --git a/docker-compose/deploy/.env.example b/docker-compose/deploy/.env.exampleindex 7f61fbc772e..8dfdc5d4eff 100644--- a/docker-compose/deploy/.env.example+++ b/docker-compose/deploy/.env.example@@ -7,6 +7,9 @@# Leave empty to allow all users to register+# Disable user registration (SSO-only mode)+# When set to 1, users cannot register via email/password, only SSO login is allowed+# AUTH_DISABLE_EMAIL_PASSWORD=1# ===========================# ====== Preset config ======@@ -28,7 +31,6 @@ RUSTFS_ACCESS_KEY=adminRUSTFS_SECRET_KEY=YOUR_RUSTFS_PASSWORD# Configure the bucket information of RUSTFS-S3_PUBLIC_DOMAIN=http://localhost:9000S3_ENDPOINT=http://localhost:9000RUSTFS_LOBE_BUCKET=lobediff --git a/docker-compose/deploy/.env.zh-CN.example b/docker-compose/deploy/.env.zh-CN.exampleindex 77bb0d03437..e9c8034923e 100644--- a/docker-compose/deploy/.env.zh-CN.example+++ b/docker-compose/deploy/.env.zh-CN.example@@ -7,6 +7,10 @@# 留空则允许所有用户注册登录+# 禁用用户注册(仅允许 SSO 登录)+# 设置为 1 后,用户无法通过邮箱密码注册,只能通过 SSO 登录+# AUTH_DISABLE_EMAIL_PASSWORD=1+# ===================# ===== 预设配置 =====# ===================@@ -24,7 +28,6 @@ RUSTFS_ACCESS_KEY=adminRUSTFS_SECRET_KEY=YOUR_RUSTFS_PASSWORD# 在下方配置 rustfs 中添加的桶-S3_PUBLIC_DOMAIN=http://localhost:9000S3_ENDPOINT=http://localhost:9000RUSTFS_LOBE_BUCKET=lobediff --git a/docker-compose/local/.env.example b/docker-compose/local/.env.exampleindex be99e9eae60..4371008ebd6 100644--- a/docker-compose/local/.env.example+++ b/docker-compose/local/.env.example@@ -37,7 +37,6 @@ RUSTFS_ACCESS_KEY=adminRUSTFS_SECRET_KEY=YOUR_RUSTFS_PASSWORD# Configure the bucket information of RUSTFS-S3_PUBLIC_DOMAIN=http://localhost:9000S3_ENDPOINT=http://localhost:9000RUSTFS_LOBE_BUCKET=lobediff --git a/docker-compose/local/.env.zh-CN.example b/docker-compose/local/.env.zh-CN.exampleindex a369fceadd4..d96818a0b0e 100644--- a/docker-compose/local/.env.zh-CN.example+++ b/docker-compose/local/.env.zh-CN.example@@ -34,7 +34,6 @@ RUSTFS_ACCESS_KEY=adminRUSTFS_SECRET_KEY=YOUR_RUSTFS_PASSWORD# 在下方配置 rustfs 中添加的桶-S3_PUBLIC_DOMAIN=http://localhost:9000S3_ENDPOINT=http://localhost:9000RUSTFS_LOBE_BUCKET=lobediff --git a/docker-compose/local/grafana/.env.example b/docker-compose/local/grafana/.env.exampleindex 21f2ad3dd50..e9c22ccc872 100644--- a/docker-compose/local/grafana/.env.example+++ b/docker-compose/local/grafana/.env.example@@ -34,7 +34,6 @@ MINIO_ROOT_USER=adminMINIO_ROOT_PASSWORD=YOUR_MINIO_PASSWORD# Configure the bucket information of MinIO-S3_PUBLIC_DOMAIN=http://localhost:9000S3_ENDPOINT=http://localhost:9000MINIO_LOBE_BUCKET=lobediff --git a/docker-compose/local/grafana/.env.zh-CN.example b/docker-compose/local/grafana/.env.zh-CN.exampleindex a6b9a46d60e..a144db373fa 100644--- a/docker-compose/local/grafana/.env.zh-CN.example+++ b/docker-compose/local/grafana/.env.zh-CN.example@@ -34,7 +34,6 @@ MINIO_ROOT_USER=adminMINIO_ROOT_PASSWORD=YOUR_MINIO_PASSWORD# 在下方配置 minio 中添加的桶-S3_PUBLIC_DOMAIN=http://localhost:9000S3_ENDPOINT=http://localhost:9000MINIO_LOBE_BUCKET=lobediff --git a/docker-compose/local/logto/docker-compose.yml b/docker-compose/local/logto/docker-compose.ymlindex 40296318c12..ba1e96d063a 100644--- a/docker-compose/local/logto/docker-compose.yml+++ b/docker-compose/local/logto/docker-compose.yml@@ -103,7 +103,6 @@ services:- 'DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgresql:5432/${LOBE_DB_NAME}'- 'S3_ENDPOINT=http://localhost:${MINIO_PORT}'- 'S3_BUCKET=${MINIO_LOBE_BUCKET}'- - 'S3_PUBLIC_DOMAIN=http://localhost:${MINIO_PORT}'- 'S3_ENABLE_PATH_STYLE=1'- 'REDIS_URL=redis://redis:6379'- 'REDIS_PREFIX=lobechat'diff --git a/docker-compose/local/zitadel/.env.example b/docker-compose/local/zitadel/.env.exampleindex b34ff6efb93..2491d5288e2 100644--- a/docker-compose/local/zitadel/.env.example+++ b/docker-compose/local/zitadel/.env.example@@ -21,8 +21,7 @@ AUTH_ZITADEL_ISSUER=http://localhost:8080S3_ACCESS_KEY_ID=S3_SECRET_ACCESS_KEY=S3_ENDPOINT=http://localhost:9000-S3_BUCKET=lobe-S3_PUBLIC_DOMAIN=http://localhost:9000+S3_BUCKET=lobeS3_ENABLE_PATH_STYLE=1LLM_VISION_IMAGE_USE_BASE64=1diff --git a/docker-compose/local/zitadel/.env.zh-CN.example b/docker-compose/local/zitadel/.env.zh-CN.exampleindex 5078bf968df..ceb061132d4 100644--- a/docker-compose/local/zitadel/.env.zh-CN.example+++ b/docker-compose/local/zitadel/.env.zh-CN.example@@ -20,8 +20,7 @@ AUTH_ZITADEL_ISSUER=http://localhost:8080S3_ACCESS_KEY_ID=S3_SECRET_ACCESS_KEY=S3_ENDPOINT=http://localhost:9000-S3_BUCKET=lobe-S3_PUBLIC_DOMAIN=http://localhost:9000+S3_BUCKET=lobeS3_ENABLE_PATH_STYLE=1LLM_VISION_IMAGE_USE_BASE64=1diff --git a/docker-compose/production/grafana/.env.example b/docker-compose/production/grafana/.env.exampleindex bec1ada7374..8c8905e85d0 100644--- a/docker-compose/production/grafana/.env.example+++ b/docker-compose/production/grafana/.env.example@@ -34,7 +34,6 @@ MINIO_ROOT_USER=adminMINIO_ROOT_PASSWORD=YOUR_MINIO_PASSWORD# Configure the bucket information of MinIO-S3_PUBLIC_DOMAIN=http://localhost:9000S3_ENDPOINT=http://localhost:9000MINIO_LOBE_BUCKET=lobediff --git a/docker-compose/production/grafana/.env.zh-CN.example b/docker-compose/production/grafana/.env.zh-CN.exampleindex a6b9a46d60e..a144db373fa 100644--- a/docker-compose/production/grafana/.env.zh-CN.example+++ b/docker-compose/production/grafana/.env.zh-CN.example@@ -34,7 +34,6 @@ MINIO_ROOT_USER=adminMINIO_ROOT_PASSWORD=YOUR_MINIO_PASSWORD# 在下方配置 minio 中添加的桶-S3_PUBLIC_DOMAIN=http://localhost:9000S3_ENDPOINT=http://localhost:9000MINIO_LOBE_BUCKET=lobediff --git a/docker-compose/production/logto/.env.example b/docker-compose/production/logto/.env.exampleindex 81d06cc06f3..7507d868bb5 100644--- a/docker-compose/production/logto/.env.example+++ b/docker-compose/production/logto/.env.example@@ -38,8 +38,6 @@ S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEYS3_ENDPOINT=https://lobe-s3-api.example.com# Required: S3 Bucket (invalid until manually created in MinIO UI)S3_BUCKET=lobe-# Required: S3 Public Domain for client access to unstructured data-S3_PUBLIC_DOMAIN=https://lobe-s3-api.example.com# Optional: S3 Enable Path Style# Use 0 for mainstream S3 cloud providers; use 1 for self-hosted MinIO# See: https://lobehub.com/docs/self-hosting/advanced/s3#s-3-enable-path-stylediff --git a/docker-compose/production/logto/.env.zh-CN.example b/docker-compose/production/logto/.env.zh-CN.exampleindex e0a1bcf15ad..be7aee27389 100644--- a/docker-compose/production/logto/.env.zh-CN.example+++ b/docker-compose/production/logto/.env.zh-CN.example@@ -38,8 +38,6 @@ S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEYS3_ENDPOINT=https://lobe-s3-api.example.com# 必填,S3 的 Bucket,直到在 MinIO UI 中手动创建之前都是无效的S3_BUCKET=lobe-# 必填,S3 的 Public Domain,用于客户端通过公开连接访问非结构化数据-S3_PUBLIC_DOMAIN=https://lobe-s3-api.example.com# 选填,S3 的 Enable Path Style# 对于主流 S3 Cloud 服务商,一般填 0 即可;对于自部署的 MinIO,请填 1# 请参考:https://lobehub.com/zh/docs/self-hosting/advanced/s3#s-3-enable-path-stylediff --git a/docker-compose/production/zitadel/.env.example b/docker-compose/production/zitadel/.env.exampleindex 2ea1f75392a..4b11be7fa3c 100644--- a/docker-compose/production/zitadel/.env.example+++ b/docker-compose/production/zitadel/.env.example@@ -35,8 +35,6 @@ S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEYS3_ENDPOINT=https://lobe-s3-api.example.com# Required: S3 Bucket (invalid until manually created in MinIO UI)S3_BUCKET=lobe-# Required: S3 Public Domain for client access to unstructured data-S3_PUBLIC_DOMAIN=https://lobe-s3-api.example.com# Optional: S3 Enable Path Style# Use 0 for mainstream S3 cloud providers; use 1 for self-hosted MinIO# See: https://lobehub.com/docs/self-hosting/advanced/s3#s-3-enable-path-stylediff --git a/docker-compose/production/zitadel/.env.zh-CN.example b/docker-compose/production/zitadel/.env.zh-CN.exampleindex c86def3c97f..7ced28cef99 100644--- a/docker-compose/production/zitadel/.env.zh-CN.example+++ b/docker-compose/production/zitadel/.env.zh-CN.example@@ -31,8 +31,6 @@ S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEYS3_ENDPOINT=https://lobe-s3-api.example.com# 必填,S3 的 Bucket,直到在 MinIO UI 中手动创建之前都是无效的S3_BUCKET=lobe-# 必填,S3 的 Public Domain,用于客户端通过公开连接访问非结构化数据-S3_PUBLIC_DOMAIN=https://lobe-s3-api.example.com# 选填,S3 的 Enable Path Style# 对于主流 S3 Cloud 服务商,一般填 0 即可;对于自部署的 MinIO,请填 1# 请参考:https://lobehub.com/zh/docs/self-hosting/advanced/s3#s-3-enable-path-stylediff --git a/docker-compose/setup.sh b/docker-compose/setup.shindex 6bf6c8865c7..ea8ec4b03ab 100644--- a/docker-compose/setup.sh+++ b/docker-compose/setup.sh@@ -230,6 +230,20 @@ show_message() {;;esac;;+ tips_disable_registration)+ case $LANGUAGE in+ zh_CN)+ echo "如需限制用户注册,可在 .env 中配置:"+ echo " - 使用 SSO 登录时,设置 AUTH_DISABLE_EMAIL_PASSWORD=1 可禁用邮箱密码注册"+ echo " - 使用邮箱密码登录时,设置 [email protected],[email protected] 可限制允许登录的邮箱"+ ;;+ *)+ echo "To restrict user registration, configure in .env:"+ echo " - For SSO login: set AUTH_DISABLE_EMAIL_PASSWORD=1 to disable email/password registration"+ echo " - For email/password login: set [email protected],[email protected] to allow specific emails"+ ;;+ esac+ ;;tips_show_documentation)case $LANGUAGE inzh_CN)@@ -595,7 +609,6 @@ section_configurate_host() {# lobe hostsed "${SED_INPLACE_ARGS[@]}" "s#^APP_URL=.*#APP_URL=$PROTOCOL://$LOBE_HOST#" .env# s3 related- sed "${SED_INPLACE_ARGS[@]}" "s#^S3_PUBLIC_DOMAIN=.*#S3_PUBLIC_DOMAIN=$PROTOCOL://$RUSTFS_HOST#" .envsed "${SED_INPLACE_ARGS[@]}" "s#^S3_ENDPOINT=.*#S3_ENDPOINT=$PROTOCOL://$RUSTFS_HOST#" .env@@ -726,7 +739,8 @@ section_display_configurated_report() {printf "\n%s\n\n" "$(show_message "tips_run_command")"print_centered "docker compose up --no-attach searxng" "green"printf "\n%s\n" "$(show_message "tips_if_run_normally")"- printf "\n%s\n\n" "$(show_message "tips_regen_jwks")"+ printf "\n%s\n" "$(show_message "tips_regen_jwks")"+ printf "\n%s\n\n" "$(show_message "tips_disable_registration")"print_centered "docker compose up -d --no-attach searxng" "green"printf "\n%s\n" "$(show_message "tips_if_want_searxng_logs")"print_centered "docker compose logs -f searxng" "white"diff --git a/docs/development/basic/work-with-server-side-database.mdx b/docs/development/basic/work-with-server-side-database.mdxindex d6f022d9b78..27eafcd459e 100644--- a/docs/development/basic/work-with-server-side-database.mdx+++ b/docs/development/basic/work-with-server-side-database.mdx@@ -101,7 +101,6 @@ S3_ACCESS_KEY_ID=${MINIO_ROOT_USER}S3_SECRET_ACCESS_KEY=${MINIO_ROOT_PASSWORD}S3_ENDPOINT=http://localhost:${MINIO_PORT}S3_BUCKET=${MINIO_LOBE_BUCKET}-S3_PUBLIC_DOMAIN=http://localhost:${MINIO_PORT}S3_ENABLE_PATH_STYLE=1 # Required for MinIOS3_SET_ACL=0 # MinIO compatibility```diff --git a/docs/development/basic/work-with-server-side-database.zh-CN.mdx b/docs/development/basic/work-with-server-side-database.zh-CN.mdxindex 632feaa5803..797d33dea59 100644--- a/docs/development/basic/work-with-server-side-database.zh-CN.mdx+++ b/docs/development/basic/work-with-server-side-database.zh-CN.mdx@@ -101,7 +101,6 @@ S3_ACCESS_KEY_ID=${MINIO_ROOT_USER}S3_SECRET_ACCESS_KEY=${MINIO_ROOT_PASSWORD}S3_ENDPOINT=http://localhost:${MINIO_PORT}S3_BUCKET=${MINIO_LOBE_BUCKET}-S3_PUBLIC_DOMAIN=http://localhost:${MINIO_PORT}S3_ENABLE_PATH_STYLE=1 # MinIO 必需S3_SET_ACL=0 # MinIO 兼容性```diff --git a/docs/self-hosting/advanced/s3.mdx b/docs/self-hosting/advanced/s3.mdxindex 12a3735d932..d48ea73354e 100644--- a/docs/self-hosting/advanced/s3.mdx+++ b/docs/self-hosting/advanced/s3.mdx@@ -50,15 +50,6 @@ The best practice in this area is to use a file storage service (S3) to store imWhether to set the ACL to `public-read` when uploading files. This option is enabled by default. If the service provider does not support setting individual ACLs for files (i.e., all files inherit the ACL of the storage bucket), enabling this option may cause request errors. Set `S3_SET_ACL` to `0` to disable it.- ### `S3_PUBLIC_DOMAIN`-- The public access domain of the storage bucket, used to access files in the storage bucket. This address needs to be **publicly readable**. The reason is that when OpenAI's gpt-4o and other vision models recognize images, OpenAI will try to download this image link on their servers. Therefore, this link must be publicly accessible. If it is a private link, OpenAI will not be able to access the image and thus will not be able to recognize the image content properly.-- <Callout type={'warning'}>- Additionally, since this access domain is often a separate URL, it needs to be configured to allow- cross-origin access to the site. Otherwise, cross-origin issues will occur in the browser.- </Callout>-### `S3_ENABLE_PATH_STYLE`Whether to enable the `path-style` access mode of S3. This option is disabled by default. If your S3 service provider uses `path-style`, set `S3_ENABLE_PATH_STYLE` to `1` to enable it.diff --git a/docs/self-hosting/advanced/s3.zh-CN.mdx b/docs/self-hosting/advanced/s3.zh-CN.mdxindex 49713c2fe57..86bd717e427 100644--- a/docs/self-hosting/advanced/s3.zh-CN.mdx+++ b/docs/self-hosting/advanced/s3.zh-CN.mdx@@ -46,14 +46,6 @@ LobeHub 在 [很早以前](https://x.com/lobehub/status/1724289575672291782) 就是否在上传文件时设置 ACL 为 `public-read`。该选项默认启用。如果服务商不支持为文件设置单独的 ACL(即所有文件继承存储桶的 ACL),启用此选项可能会导致请求错误,将 `S3_SET_ACL` 设置为 `0` 即可关闭。- ### `S3_PUBLIC_DOMAIN`-- 存储桶对外的访问域名,用于访问存储桶中的文件,这个地址需要**允许互联网可读**。 原因是 OpenAI 的 gpt-4o 等视觉模型识别图片时,OpenAI 会尝试在他们的服务器中下载这个图片链接,因此这个链接必须是公开可访问的,如果是私有的链接,OpenAI 将无法访问到这个图片,进而无法正常识别到图片内容。-- <Callout type={'warning'}>- 此外,由于该访问域名往往是一个独立的网址,因此需要配置允许站点的跨域访问,否则会在浏览器中出现跨域问题。- </Callout>-### `S3_ENABLE_PATH_STYLE`是否启用 S3 的 `path-style` 访问模式。此选项默认禁用。如果您的 S3 服务提供商使用 `path-style`,请将 `S3_ENABLE_PATH_STYLE` 设置为 `1` 以启用它。diff --git a/docs/self-hosting/advanced/s3/cloudflare-r2.mdx b/docs/self-hosting/advanced/s3/cloudflare-r2.mdxindex e5406208e6d..9bc8b7f0a2c 100644--- a/docs/self-hosting/advanced/s3/cloudflare-r2.mdx+++ b/docs/self-hosting/advanced/s3/cloudflare-r2.mdx@@ -39,8 +39,6 @@ We need to configure an S3 storage service in the server-side database to storeS3_BUCKET=LobeHub# 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-LobeHub.your-domain.com```<Callout type={'warning'}>@@ -118,9 +116,6 @@ S3_SECRET_ACCESS_KEY=55af75d8eb6b99f189f6a35f855336ea62cd9c4751a5cf4337c53c1d3f4S3_BUCKET=LobeHub# Bucket Request EndpointS3_ENDPOINT=https://0b33a03b5c993fd2f453379dc36558e5.r2.cloudflarestorage.com-# Public Access Domain for the Bucket-S3_PUBLIC_DOMAIN=https://s3-dev.your-domain.com-# Bucket Region, such as us-west-1. Generally not required, but some service providers may need it.# S3_REGION=us-west-1```diff --git a/docs/self-hosting/advanced/s3/cloudflare-r2.zh-CN.mdx b/docs/self-hosting/advanced/s3/cloudflare-r2.zh-CN.mdxindex d2bd7bc1d70..4795d6b28c0 100644--- a/docs/self-hosting/advanced/s3/cloudflare-r2.zh-CN.mdx+++ b/docs/self-hosting/advanced/s3/cloudflare-r2.zh-CN.mdx@@ -40,8 +40,6 @@ tags:S3_BUCKET=LobeHub# 存储桶的请求端点(注意此处链接的路径带存储桶名称,必须删除该路径,或使用申请 S3 API token 页面所提供的链接)S3_ENDPOINT=https://0b33a03b5c993fd2f453379dc36558e5.r2.cloudflarestorage.com- # 存储桶对外的访问域名- S3_PUBLIC_DOMAIN=https://s3-for-LobeHub.your-domain.com```<Callout type={'warning'}>`S3_ENDPOINT`必须删除其路径,否则会无法访问所上传文件</Callout>@@ -115,9 +113,6 @@ S3_SECRET_ACCESS_KEY=55af75d8eb6b99f189f6a35f855336ea62cd9c4751a5cf4337c53c1d3f4S3_BUCKET=LobeHub# 存储桶的请求端点S3_ENDPOINT=https://0b33a03b5c993fd2f453379dc36558e5.r2.cloudflarestorage.com-# 存储桶对外的访问域名-S3_PUBLIC_DOMAIN=https://s3-dev.your-domain.com-# 桶的区域,如 us-west-1,一般来说不需要添加,但某些服务商则需要配置# S3_REGION=us-west-1```diff --git a/docs/self-hosting/advanced/s3/rustfs.mdx b/docs/self-hosting/advanced/s3/rustfs.mdxindex b3fb9e8c430..5ae10fdc41c 100644--- a/docs/self-hosting/advanced/s3/rustfs.mdx+++ b/docs/self-hosting/advanced/s3/rustfs.mdx@@ -135,8 +135,6 @@ We need to configure an S3-compatible storage service in the server-side databasS3_ENDPOINT=https://lobe-s3-api.example.com# Bucket nameS3_BUCKET=lobe- # Public domain for accessing the bucket- S3_PUBLIC_DOMAIN=https://lobe-s3-api.example.comS3_ENABLE_PATH_STYLE=1```</Steps>diff --git a/docs/self-hosting/advanced/s3/rustfs.zh-CN.mdx b/docs/self-hosting/advanced/s3/rustfs.zh-CN.mdxindex 7ca47259430..074d45afa16 100644--- a/docs/self-hosting/advanced/s3/rustfs.zh-CN.mdx+++ b/docs/self-hosting/advanced/s3/rustfs.zh-CN.mdx@@ -135,8 +135,6 @@ tags:S3_ENDPOINT=https://lobe-s3-api.example.com# 存储桶的名称S3_BUCKET=lobe- # 存储桶对外的访问域名- S3_PUBLIC_DOMAIN=https://lobe-s3-api.example.comS3_ENABLE_PATH_STYLE=1```</Steps>diff --git a/docs/self-hosting/advanced/s3/tencent-cloud.mdx b/docs/self-hosting/advanced/s3/tencent-cloud.mdxindex a18f0697922..05760d596d9 100644--- a/docs/self-hosting/advanced/s3/tencent-cloud.mdx+++ b/docs/self-hosting/advanced/s3/tencent-cloud.mdx@@ -39,7 +39,6 @@ We need to configure S3 storage service for file storage in the server-side dataS3_BUCKET=lobe-130xxxxxx2S3_ENDPOINT=https://cos.ap-chengdu.myqcloud.comS3_REGION=ap-chengdu- S3_PUBLIC_DOMAIN=https://lobe-1251234567.cos.ap-chengdu.myqcloud.com```<Callout type={'warning'}>diff --git a/docs/self-hosting/advanced/s3/tencent-cloud.zh-CN.mdx b/docs/self-hosting/advanced/s3/tencent-cloud.zh-CN.mdxindex 274baa03bf3..3164ec4aa45 100644--- a/docs/self-hosting/advanced/s3/tencent-cloud.zh-CN.mdx+++ b/docs/self-hosting/advanced/s3/tencent-cloud.zh-CN.mdx@@ -40,8 +40,6 @@ tags:S3_ENDPOINT=https://cos.ap-chengdu.myqcloud.com# 桶的区域S3_REGION=ap-chengdu- # 存储桶对外的访问域名- S3_PUBLIC_DOMAIN=https://lobe-1251234567.cos.ap-chengdu.myqcloud.com```<Callout type={'warning'}>diff --git a/docs/self-hosting/environment-variables/s3.mdx b/docs/self-hosting/environment-variables/s3.mdxindex f39800edc92..8c1eb9cd85b 100644--- a/docs/self-hosting/environment-variables/s3.mdx+++ b/docs/self-hosting/environment-variables/s3.mdx@@ -58,13 +58,6 @@ LobeHub supports multimodal AI sessions, including the ability to upload unstruc- Default: `1`- Example: `0`-### `S3_PUBLIC_DOMAIN`--- Type: Required-- Description: Public access domain for the bucket, used to access files in the bucket-- Default: --- Example: `https://files.example.com`-### `S3_ENABLE_PATH_STYLE`- Type: Optionaldiff --git a/docs/self-hosting/environment-variables/s3.zh-CN.mdx b/docs/self-hosting/environment-variables/s3.zh-CN.mdxindex 2bf68f84e5a..9c44e6a8074 100644--- a/docs/self-hosting/environment-variables/s3.zh-CN.mdx+++ b/docs/self-hosting/environment-variables/s3.zh-CN.mdx@@ -56,13 +56,6 @@ LobeHub 支持多模态的 AI 会话,包括将图片、文件等非结构化- 默认值:`1`- 示例:`0`-### `S3_PUBLIC_DOMAIN`--- 类型:必填-- 描述:存储桶对外的访问域名,用于访问存储桶中的文件-- 默认值:--- 示例:`https://files.example.com`-### `S3_ENABLE_PATH_STYLE`- 类型:可选diff --git a/docs/self-hosting/platform/docker-compose.mdx b/docs/self-hosting/platform/docker-compose.mdxindex 7e5157390e9..4cfa302869f 100644--- a/docs/self-hosting/platform/docker-compose.mdx+++ b/docs/self-hosting/platform/docker-compose.mdx@@ -281,7 +281,6 @@ Now, we will introduce the necessary configurations for running these services:LobeHub needs to provide a public access URL for object files for the LLM service provider, so you need to configure the S3 Endpoint:```env-S3_PUBLIC_DOMAIN=https://s3.example.comS3_ENDPOINT=https://s3.example.com```diff --git a/docs/self-hosting/platform/docker-compose.zh-CN.mdx b/docs/self-hosting/platform/docker-compose.zh-CN.mdxindex cf456829f09..4e804749936 100644--- a/docs/self-hosting/platform/docker-compose.zh-CN.mdx+++ b/docs/self-hosting/platform/docker-compose.zh-CN.mdx@@ -277,7 +277,6 @@ mv .env.zh-CN.example .envLobeHub 需要为 LLM 服务提供商提供文件对象的公网访问地址,因此你需要配置 S3 的 Endpoint:```env-S3_PUBLIC_DOMAIN=https://s3.example.comS3_ENDPOINT=https://s3.example.com```diff --git a/docs/self-hosting/platform/docker.mdx b/docs/self-hosting/platform/docker.mdxindex 9c561fa6504..3c217cb3045 100644--- a/docs/self-hosting/platform/docker.mdx+++ b/docs/self-hosting/platform/docker.mdx@@ -64,6 +64,10 @@ Here is the process for deploying the LobeHub server database version on a Linux<GenerateSecret envName="AUTH_SECRET" />+ Click the button below to generate `JWKS_KEY` (for signing and verifying JWTs):++ <GenerateJWKSKey />+```shell# Website domainAPP_URL=https://your-prod-domain.com@@ -77,7 +81,7 @@ Here is the process for deploying the LobeHub server database version on a Linux# Authentication (Better Auth)# Session encryption key (generate with: openssl rand -base64 32)AUTH_SECRET=jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk=- # JWKS key for signing and verifying JWTs (generate at: https://lobehub.com/docs/self-hosting/environment-variables/auth#jwks_key)+ # JWKS key for signing and verifying JWTsJWKS_KEY='{"keys":[...]}'# S3 related@@ -85,7 +89,6 @@ Here is the process for deploying the LobeHub server database version on a LinuxS3_SECRET_ACCESS_KEY=xxxxxxxxxxS3_ENDPOINT=https://xxxxxxxxxx.r2.cloudflarestorage.comS3_BUCKET=LobeHub- S3_PUBLIC_DOMAIN=https://s3-for-LobeHub.your-domain.com```@@ -142,7 +145,6 @@ $ docker run -it -d --name lobehub -p 3210:3210 \-e S3_SECRET_ACCESS_KEY=xxxxxxxxxx \-e S3_ENDPOINT=https://xxxxxxxxxx.r2.cloudflarestorage.com \-e S3_BUCKET=LobeHub \- -e S3_PUBLIC_DOMAIN=https://s3-for-LobeHub.your-domain.com \lobehub/lobehub```diff --git a/docs/self-hosting/platform/docker.zh-CN.mdx b/docs/self-hosting/platform/docker.zh-CN.mdxindex 1258bac7e5c..b21b33b57ff 100644--- a/docs/self-hosting/platform/docker.zh-CN.mdx+++ b/docs/self-hosting/platform/docker.zh-CN.mdx@@ -60,6 +60,10 @@ tags:<GenerateSecret envName="AUTH_SECRET" />+ 点击下方按钮一键生成 `JWKS_KEY`(用于签名和验证 JWT):++ <GenerateJWKSKey />+```shell# 网站域名APP_URL=https://your-prod-domain.com@@ -74,7 +78,7 @@ tags:# 身份验证(Better Auth)# 会话加密密钥(使用以下命令生成:openssl rand -base64 32)AUTH_SECRET=jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk=- # JWKS 密钥,用于签名和验证 JWT(在此生成:https://lobehub.com/zh/docs/self-hosting/environment-variables/auth#jwks_key)+ # JWKS 密钥,用于签名和验证 JWTJWKS_KEY='{"keys":[...]}'# S3 相关@@ -83,8 +87,6 @@ tags:# 用于 S3 API 访问的域名S3_ENDPOINT=https://xxxxxxxxxx.r2.cloudflarestorage.comS3_BUCKET=LobeHub- # 用于外网访问 S3 的公共域名,需配置 CORS- S3_PUBLIC_DOMAIN=https://s3-for-LobeHub.your-domain.com# S3_REGION=ap-chengdu # 如果需要指定地域```@@ -142,7 +144,6 @@ $ docker run -it -d --name lobehub -p 3210:3210 \-e S3_SECRET_ACCESS_KEY=xxxxxxxxxx \-e S3_ENDPOINT=https://xxxxxxxxxx.r2.cloudflarestorage.com \-e S3_BUCKET=LobeHub \- -e S3_PUBLIC_DOMAIN=https://s3-for-LobeHub.your-domain.com \lobehub/lobehub```diff --git a/docs/self-hosting/platform/dokploy.mdx b/docs/self-hosting/platform/dokploy.mdxindex 581ca9ce51d..c9e4a21532f 100644--- a/docs/self-hosting/platform/dokploy.mdx+++ b/docs/self-hosting/platform/dokploy.mdx@@ -39,7 +39,6 @@ S3_ACCESS_KEY_ID=S3_SECRET_ACCESS_KEY=S3_ENDPOINT=S3_BUCKET=-S3_PUBLIC_DOMAIN=S3_ENABLE_PATH_STYLE=```@@ -118,7 +117,6 @@ S3_ACCESS_KEY_ID=S3_SECRET_ACCESS_KEY=S3_ENDPOINT=S3_BUCKET=-S3_PUBLIC_DOMAIN=S3_ENABLE_PATH_STYLE=```diff --git a/docs/self-hosting/platform/dokploy.zh-CN.mdx b/docs/self-hosting/platform/dokploy.zh-CN.mdxindex 01380ff2ae0..e12da6611d5 100644--- a/docs/self-hosting/platform/dokploy.zh-CN.mdx+++ b/docs/self-hosting/platform/dokploy.zh-CN.mdx@@ -40,7 +40,6 @@ S3_ACCESS_KEY_ID=S3_SECRET_ACCESS_KEY=S3_ENDPOINT=S3_BUCKET=-S3_PUBLIC_DOMAIN=S3_ENABLE_PATH_STYLE=```@@ -119,7 +118,6 @@ S3_ACCESS_KEY_ID=S3_SECRET_ACCESS_KEY=S3_ENDPOINT=S3_BUCKET=-S3_PUBLIC_DOMAIN=S3_ENABLE_PATH_STYLE=```diff --git a/docs/self-hosting/platform/vercel.mdx b/docs/self-hosting/platform/vercel.mdxindex ffd2a8b9f60..e5b36cb1ed4 100644--- a/docs/self-hosting/platform/vercel.mdx+++ b/docs/self-hosting/platform/vercel.mdx@@ -154,8 +154,6 @@ In the server-side database, we need to configure the S3 storage service to storS3_BUCKET=LobeHub# Storage bucket request endpoint (note that the path in this link includes the bucket name, which must be removed, or use the link provided on the S3 API token application page)S3_ENDPOINT=https://0b33a03b5c993fd2f453379dc36558e5.r2.cloudflarestorage.com- # Public access domain for the storage bucket- S3_PUBLIC_DOMAIN=https://s3-for-LobeHub.your-domain.com```<Callout type={'warning'}>@@ -204,9 +202,6 @@ In the server-side database, we need to configure the S3 storage service to storS3_BUCKET=LobeHub# Bucket request endpointS3_ENDPOINT=https://0b33a03b5c993fd2f453379dc36558e5.r2.cloudflarestorage.com- # Public domain for bucket access- S3_PUBLIC_DOMAIN=https://s3-dev.your-domain.com-# Bucket region, such as us-west-1, generally not required, but some providers may need to configure# S3_REGION=us-west-1```@@ -288,8 +283,6 @@ S3_SECRET_ACCESS_KEY=55af75d8eb6b99f189f6a35f855336ea62cd9c4751a5cf4337c53c1d3f4S3_BUCKET=LobeHub# Bucket request endpointS3_ENDPOINT=https://0b33a03b5c993fd2f453379dc36558e5.r2.cloudflarestorage.com-# Public access domain for the bucket-S3_PUBLIC_DOMAIN=https://s3-for-LobeHub.your-domain.com# Bucket region, such as us-west-1, generally not needed to add, but some service providers may require configuration# S3_REGION=us-west-1```diff --git a/docs/self-hosting/platform/vercel.zh-CN.mdx b/docs/self-hosting/platform/vercel.zh-CN.mdxindex cf7f0eecec9..e620d487673 100644--- a/docs/self-hosting/platform/vercel.zh-CN.mdx+++ b/docs/self-hosting/platform/vercel.zh-CN.mdx@@ -153,8 +153,6 @@ tags:S3_BUCKET=LobeHub# 存储桶的请求端点(注意此处链接的路径带存储桶名称,必须删除该路径,或使用申请 S3 API token 页面所提供的链接)S3_ENDPOINT=https://0b33a03b5c993fd2f453379dc36558e5.r2.cloudflarestorage.com- # 存储桶对外的访问域名- S3_PUBLIC_DOMAIN=https://s3-for-LobeHub.your-domain.com```<Callout type={'warning'}>`S3_ENDPOINT`必须删除其路径,否则会无法访问所上传文件</Callout>@@ -199,9 +197,6 @@ tags:S3_BUCKET=LobeHub# 存储桶的请求端点S3_ENDPOINT=https://0b33a03b5c993fd2f453379dc36558e5.r2.cloudflarestorage.com- # 存储桶对外的访问域名- S3_PUBLIC_DOMAIN=https://s3-dev.your-domain.com-# 桶的区域,如 us-west-1,一般来说不需要添加,但某些服务商则需要配置# S3_REGION=us-west-1```@@ -283,8 +278,6 @@ S3_SECRET_ACCESS_KEY=55af75d8eb6b99f189f6a35f855336ea62cd9c4751a5cf4337c53c1d3f4S3_BUCKET=LobeHub# 存储桶的请求端点S3_ENDPOINT=https://0b33a03b5c993fd2f453379dc36558e5.r2.cloudflarestorage.com-# 存储桶对外的访问域名-S3_PUBLIC_DOMAIN=https://s3-for-LobeHub.your-domain.com# 桶的区域,如 us-west-1,一般来说不需要添加,但某些服务商则需要配置# S3_REGION=us-west-1```