Commit Graph

47 Commits

Author SHA1 Message Date
Arvin Xu c5ec20abab ✨ feat(docker): run self-hosted Compose chats in Gateway Mode by default (#19583)
* ✨ feat(docker): run self-hosted Compose chats in Gateway Mode by default

- Add the lobehub-gateway service to docker-compose and wire the lobe service
  to it; AGENT_GATEWAY_INTERNAL_URL keeps server pushes on the Compose network
  while browsers use AGENT_GATEWAY_URL.
- S3_INTERNAL_ENDPOINT routes the server's own S3 requests to rustfs:9000 while
  presigned URLs keep the browser-facing S3_ENDPOINT, which local mode sets to
  localhost and the container cannot reach.
- setup.sh generates a per-deployment JWKS_KEY and gateway token and writes the
  gateway URL for each deploy mode; the .env template drops the public JWKS key.
- Warn loudly at container startup when an upgraded stack lacks the gateway
  settings or still uses the public example JWKS_KEY, and document the upgrade.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* 🔒 fix(docker): pass only the public JWK to the gateway container

The gateway only needs the public half of JWKS_KEY to verify browser
sessions, but it received the full private key set, so anyone able to read
the gateway environment could sign tokens LobeHub trusts. setup.sh now also
writes JWKS_PUBLIC_KEY (the same key without d/p/q/dp/dq/qi), Compose passes
only that to the gateway, and the startup check warns when it is missing,
still contains private fields, or does not match JWKS_KEY.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 00:33:26 +08:00
Arvin Xu 40f8f469cf 🐛 fix(docker): make the one-click Docker Compose install start on the released image (#19590)
- Apply a bucket CORS rule in rustfs-init so browser uploads to RustFS through
  presigned URLs are not blocked by the preflight.
- Preload pg_cron and pg_stat_statements alongside pg_search, matching the
  ParadeDB image default. Its first-start bootstrap creates pg_cron under set -e,
  so preloading only pg_search aborted initialization, restarted the container
  and failed the first docker compose up with an unhealthy database.
- Probe PostgreSQL health over TCP with a start period. During initialization the
  image runs a temporary socket-only server, so the socket probe passed early and
  LobeHub's migrations failed with ECONNREFUSED until it had restarted repeatedly.
- setup.sh downloads templates from lobehub/lobehub main, uses curl with a wget
  fallback, and detects the host IP on macOS where hostname -I is missing.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 21:46:07 +08:00
YuTengjing 191f3fe776 📝 docs: fix outdated content across the docs site (#16964)
* 📝 docs: fix outdated content across the docs site

Audited docs/ against the current codebase and fixed stale content that
drifted after major refactors (Clerk/NextAuth → Better Auth, src/server →
apps/server, src/{config,envs,locales} → packages/*, model-bank updates).

- self-hosting/auth: mark removed NextAuth/Clerk pages with deprecation
  warnings; fix microsoft/zitadel alias claims and the Logto callback path
- environment-variables & advanced: correct wrong defaults (S3_SET_ACL,
  AI_IMAGE_DEFAULT_IMAGE_NUM, index/proxy URLs), drop non-existent env vars
  and fictional feature flags, fix OIDC config guidance
- development: update refactored paths, Better Auth, .mjs configs, remove
  the MSW section (msw is not a dependency)
- providers & model examples: replace retired model ids with in-bank ones;
  fix comfyui frontmatter corruption
- usage: rename Moderator→Orchestrator, GTD→Task, correct shortcut keys,
  channel capability tables, Feishu/Lark WebSocket mode
- platform/migration: fix dead links, docker service name, npx/npm → bun

EN and zh-CN pairs updated together.

* 📝 docs: fix Logto callback path and AUTH_SECRET deprecation guidance

- Revert Logto/Sealos callback URLs to /api/auth/callback/logto to match
  the runtime SSO redirectURI override
- Narrow legacy auth Callout: AUTH_SECRET remains required for Better Auth;
  mark NEXT_AUTH_SECRET as deprecated in zh-CN

* 📝 docs: refresh agent skills for locales, env, auth, and agentRun paths

Align OSS agent guidance with post-refactor layout:
- packages/locales/src/default + bun run i18n
- packages/env/src for env schemas (@/envs alias)
- spa-auth shell + src/routes/auth segments
- chat agentRun/transports/hetero instead of aiChat

* 📝 docs: document APP_URL as required for Better Auth base URL

Self-hosted auth uses appEnv.APP_URL as baseURL, not request-header
auto-detection. NEXT_PUBLIC_AUTH_URL remains deprecated.

* 📝 docs: note self-host search provider setup for web search

Built-in lobe-web-browsing needs no client plugin, but self-hosted
servers still require SEARCH_PROVIDERS / SEARXNG_URL (default SearXNG).

* 📝 docs: point feature guide welcome UI at AgentHome

Opening message/questions on the agent chat page live in
src/features/AgentHome, not Onboarding WelcomeMessage.
2026-07-10 17:50:03 +08:00
Sui_Feng aefce3df3a 📝 docs: Upgrade some pages in documents (#16189)
* 📝 docs: Remove Langfuse docs; enable pg_search

Delete Langfuse observability guides (langfuse.mdx and langfuse.zh-CN.mdx). Update Docker self-hosting docs to add `-c shared_preload_libraries=pg_search` to the ParadeDB docker run command and clarify that the ParadeDB image includes pgvector and pg_search and that pg_search must be explicitly enabled; apply the same clarification to the Chinese documentation.

* 📝 docs: Document 'video' capability in model list

Add a `video` entry to the extension capabilities table in docs/self-hosting/advanced/model-list.mdx and its Chinese translation (model-list.zh-CN.mdx) to document Video Comprehension support.

* 📝 docs: Add agent feature flags & update thread text

Add documentation entries for new system agent feature flags: generationTopic (AI image automatic topic naming), inputCompletion (input auto-completion suggestions), and promptRewrite (prompt optimization before generation). Also reword the thread/branch conversation entry to clarify automatic title generation. Apply the same updates to the Chinese localization file.

* 📝 docs: Document AGENT_GATEWAY_SERVICE_TOKEN env var

Add documentation for the AGENT_GATEWAY_SERVICE_TOKEN environment variable to the self-hosting environment variables pages (English and Chinese). The new entries specify that the variable is optional, describe it as the authentication token used between Gateway Mode and a self-deployed Agent Gateway, and include default (-) and example (`dev-secret`). Files changed: docs/self-hosting/environment-variables/basic.mdx and basic.zh-CN.mdx.
2026-07-01 12:27:47 +08:00
YuTengjing 1df5ae32f1 🐛 fix: distinguish SSRF block errors from network errors (#13103) 2026-03-18 18:16:19 +08:00
Arvin Xu adbf11dc11 📝 docs: update documents (#12982)
update document
2026-03-14 22:06:09 +08:00
Marcell Gu 023e3ef11a 📝 docs: Simplify docker compose network architecture & Remove broken links from docker compose docs (#12749)
* ♻️ refactor(docker): simplify network architecture and add admin port
- Remove unnecessary network-service (alpine) container
- Use dedicated lobe-network bridge for all services
- Add RUSTFS_ADMIN_PORT environment variable for admin console
- Update container-to-container communication to use Docker service names
- Use relative path volumes for better data persistence

* 📝 docs: update Docker Compose deployment guide
- Add single-domain deployment documentation
- Update INTERNAL_APP_URL guidance
- Clarify Port Mode vs Domain Mode behavior
- Add S3_ENDPOINT configuration tips
- Remove broken link to non-existent server-database documentation

* fix(docker): keep backward-compatible volume paths for existing deployments

- PostgreSQL: Keep ./data (not ./postgres_data)
- Redis: Keep redis_data named volume (not ./redis_data)
- RustFS: Keep rustfs-data named volume (not ./rustfs_data)

This ensures existing users can upgrade without data migration.

* fix(docker): correct Port Mode vs Domain Mode description

- Fix reversed explanation in comments
- Port Mode: Uses default ports (3210/9000/9001)
- Domain Mode: Custom ports via reverse proxy

This aligns with the actual deployment script behavior.
2026-03-10 09:55:56 +08:00
CanisMinor 43578a9bcc 📝 docs: Polishing and improving product documentation (#12612)
* 🔖 chore(release): release version v2.1.34 [skip ci]

* 📝 docs: Polish documents

* 📝 docs: Fix typo

* 📝 docs: Update start

* 📝 docs: Fix style

* 📝 docs: Update start

* 📝 docs: Update layout

* 📝 docs: Fix typo

* 📝 docs: Fix typo

---------

Co-authored-by: lobehubbot <i@lobehub.com>
2026-03-03 16:01:41 +08:00
YuTengjing e2fd28eece 🐛 fix: hide password features when AUTH_DISABLE_EMAIL_PASSWORD is set (#12023) 2026-02-02 14:17:10 +08:00
Arvin Xu 4a87b31246 📝 docs: improve docs (#12013)
Update docs
2026-01-31 19:46:44 +08:00
Arvin Xu 7496511917 📝 docs: improve self-hosting documents (#11994)
* update document

* update documents

* update auth

* move

* update database

* move auth

* move auth

* update
2026-01-30 20:50:05 +08:00
Arvin Xu f17acd7f7e ♻️ chore(docker-compose): refactor docker compose (#11989)
* improve message content

* ♻️ refactor(docker-compose): 创建精简版 deploy 配置

- 新建 docker-compose/deploy 目录,包含最小化部署配置
- 仅保留核心服务:postgresql、redis、rustfs、searxng、lobe
- 移除 Casdoor 认证服务相关配置
- 移除可观测性服务(Grafana/Prometheus/Tempo/otel-collector)
- 使用 paradedb/paradedb:latest 镜像(支持 pgvector + pg_search)
- 更新 setup.sh 指向新的 deploy 目录
- 清理 .env 示例文件中的 Casdoor 相关配置

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* update document

* update content

* update content

* improve env

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 18:15:43 +08:00
YuTengjing 225b1f4b47 📝 docs: remove outdated auth docs and simplify deployment guide (#11916) 2026-01-28 01:14:53 +08:00
YuTengjing e6cb6cb592 🐛 fix: rename docker image and update docs for v2 (#11911) 2026-01-27 22:14:58 +08:00
René Wang 3dfc86fd0f feat: Update user guide & changelog (#11518)
* feat: Redesign doc

* chore: uopdate site

* chore: uopdate site

* chore: uopdate site

* chore: uopdate site

* chore: uopdate site

* feat: Uopdate content

* chore: New doc

* chore: Update content

* chore: Update content

* chore: add images

* chore: add images

* chore: add images

* chore: add images

* feat: Add more images

* feat: Add more images

* fix: Cannot reach end

* chore: Update content

* chore: Update content

* chore: Update content

* chore: Update content

* chore: Update content

* Revise README content and structure

Updated README to reflect changes in project description and removed outdated notes.

* Revise 'Getting Started' and TOC in README

Updated the 'Getting Started' section and modified the table of contents.

* chore: Update content

* Revise README structure and content

Updated the Getting Started section and removed the Table of Contents. Adjusted the Local Development instructions.

* Remove custom themes section from README

Removed section about custom themes from README.

* Update README.md

* Refine introduction and highlight cloud version

Updated wording for clarity and added recommendation for cloud version.

* chore: Update content

* chore: Update content

* chore: Update content

* chore: Update content

* chore: Update content

* chore: Update content

* chore: Update content

* fix: add missing translation

* 🔀 chore: Move README changes to feat/readme branch

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: add missing translation

* chore: update cdn

* docs: add migration guide from v1.x local database to v2.x and update help sections

Signed-off-by: Innei <tukon479@gmail.com>

* fix: add missing translation

* fix: add missing images

* fix: add missing changelogs

* fix: add missing changelogs

* fix: add missing changelogs

* fix: add missing changelogs

* fix: add missing changelogs

* style: update cdn

---------

Signed-off-by: Innei <tukon479@gmail.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: canisminor1990 <i@canisminor.cc>
Co-authored-by: Innei <tukon479@gmail.com>
2026-01-26 15:28:33 +08:00
YuTengjing 3110e2c356 📝 docs: update Better Auth documentation (#11679) 2026-01-21 18:44:44 +08:00
sxjeru 2a811d0a85 🔨 chore: Prettier & Add proxyUrl for all providers (#8061)
* migration: 添加移除 reasoning_effort 参数和删除 doubao 的迁移脚本

* Refactor code structure for improved readability and maintainability

* npx prettier --write "src/**/*"

* add proxyUrl for all providers

* npx prettier --write "docs/**/*"

* Revert

* Revert

* revert
2025-06-04 21:39:39 +08:00
Carson Yang fbf9fb1f1f 📝 docs:(deploy): update Sealos deployment docs and links (#6399)
Signed-off-by: Carson Yang <yangchuansheng33@gmail.com>
2025-02-22 01:36:03 +08:00
Arvin Xu b5360d5cfb 📝 docs: Update docker image version in docs (#6278)
* Update README.md

* Update docker-compose.mdx

* Update docker-compose.zh-CN.mdx

* Update docker.mdx

* Update docker.zh-CN.mdx

* Update docker.mdx

* Update docker.zh-CN.mdx

* Update docker-compose.mdx

* Update docker-compose.zh-CN.mdx
2025-02-18 02:34:19 +08:00
Arvin Xu a20aad04d7 📝 docs: update langfuse Chinese docs (#6168)
* update docs

* update docs
2025-02-15 12:52:00 +08:00
hiyu 4584a6c354 📝docs: add deployment on tencent cloud lighthouse (#4647)
* 📝docs: add deployment on tencent cloud lighthouse

* update docs

--------
2025-02-15 12:22:27 +08:00
Rylan Cai ae4aa0e2e1 📝 docs: Add warning to caching in reverse proxy (#5985)
* 📝 docs: add warning

* 📝 docs: add links
2025-02-10 21:28:42 +08:00
CanisMinor 2c3331a591 ✨ feat: Update Remark (#5340)
* ✨ feat: Update Remark

* 📝 docs: Update seo

* 🔧 chore: Fix deps

* 🔧 chore: Update ui version

* 📝 docs: Update docs

* ✨ feat: Update @lobehub/ui to 1.163.0
2025-01-08 21:32:57 +08:00
CanisMinor 19da5e419d 🔧 chore: Add changelog workflow (#4662)
* 🔧 chore: Add changelog workflow

* 🔧 chore: Update schema

* 🔧 chore: Update schema

* 🔧 chore: Update changelog workflow

* 🔧 chore: Update changelog json

* 🔧 chore: Update changelog

* 📝 docs: Update Changelog
2024-11-26 14:48:06 +08:00
vual 22480a9d3d 💄 style: support to reset fetched models (#4260)
* 增加【清除获取的模型】的功能,主要是用于在获取模型列表后,不想要了,需要恢复系统自带的模型。

* revert

* 🌐 chore: update locale

* 🎨 refactor: refactor code

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
2024-11-25 02:53:07 +08:00
bestlaw66 d1ff232e07 📝 docs: add deployment on btpanel (#4528)
* Create btpanel.zh-CN.mdx

希望可以加入宝塔面板部署教程,面板这边安装帮助可以跳转官网,论坛可增加部署咱们应用的教程,详情沟通可联系qq1115070458

* 📝 docs: Add documentation for deploying with aaPanel

* Update btpanel.mdx

Update tutorial

* docs: Add documentation for deploying with aaPanel

* 📝 docs: Add documentation for deploying with aaPanel

---------

Co-authored-by: YANGJINZE <91786638+KincaidYang@users.noreply.github.com>
2024-10-31 10:15:21 +08:00
lyh_rain e4666531fc 📝 docs(self hosting): Add deployment link for Alibaba Cloud international-site (#4368) 2024-10-20 11:28:59 +08:00
Arthals e3f898cec1 📝 docs: Docker Compose (#3687)
* 📝 docs: Docker Compose

* 📝 docs: Tencent Cloud

* 📝 docs: S3 & Some note

* 📝 docs: Link's lang
2024-08-30 23:22:49 +08:00
Arthals ddab42be53 📝 docs: Feature flags & Auto-update script (#3588)
* 📝 docs: Feature flags & Auto-update script

* 📝 docs: Hide internal var
2024-08-24 23:35:41 +08:00
pagal 34c68202e2 📝 docs : update docker.mdx (#3273) 2024-07-21 19:34:26 +08:00
Arvin Xu 0e4ed20523 📝 docs: update docs (#3209) 2024-07-13 18:47:40 +08:00
CanisMinor 67e5eead26 📝 docs: Update provider docs (#2949)
* 📝 docs: Update provider docs

* 📝 docs: Update docs

* 📝 docs: Update shield

* 📝 docs: Update link

* 📝 docs: Add providers page

* 📝 docs: Update docs

* ✨ feat: Add doc in llm setting

* 📝 docs: Update provider docs

* 📝 docs: Update docs

* 🔧 chore: Fix reference
2024-06-20 19:07:50 +08:00
cy948 6f5be5de27 🐛 fix: fix issues for client fetch (#2753)
* 🚸 feat: improve UX for clientfetch

* 🚨 fix: circular dependence

* 💡 docs: update comments

* ✅ test: client fetch enabled

* ✅ test: client fetch

* ?? fix: wrong condition

* ✅ test: update tests

* 🐛 fix: wrong selector

* ♻️ refactor: modify vaults selectors

* ⏪ revert: style changed

* ⏪ revert: cancel style fix

* 🧪 test: isProviderEndpointNotEmpty

* 🧪 test: isProviderApiKeyNotEmpty

* ✅ test: isProviderEndpointNotEmpty

* ♻️ refactor: endpoint for aws bedrock

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2024-06-16 18:32:42 +08:00
Harry Sun 41d96bef14 📝 docs: Add deploy as serverless function on Zeabur (#2787)
* Add deploy as serverless function on Zeabur to doc

* typo
2024-06-07 14:50:57 +08:00
多啦b梦 1ca7cadbe7 📝 docs: Update docs/self-hosting/platform/docker-compose.zh-CN.mdx (#2204)
* Update `docs/self-hosting/platform/docker-compose.zh-CN.mdx`

* Update docker-compose.zh-CN.mdx

* Update docker-compose.zh-CN.mdx

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2024-04-26 10:24:04 +08:00
Okeke Felix Chibuzor 77e84a9c85 📝 docs: Update docs/self-hosting/platform/vercel.mdx (#2124)
* Update `docs/self-hosting/platform/vercel.mdx`

* Update vercel.mdx
2024-04-21 14:44:51 +08:00
canisminor1990 e471c32672 📝 docs: Fix docs 2024-04-11 19:31:40 +08:00
Maple Gao 576fd61b86 📝 docs: fix inner URL error due to docs update (#1980) 2024-04-11 17:58:13 +08:00
Maple Gao 722921d10e 📖 docs: Add custom models new ENV set and ollama non-local configurations (#1969)
* 📖 docs: Add custom models new ENV set and ollama non-local configurations.

* 📖 docs: fix more CUSTOM_Models in docs

* Update .env.example

* Update azure-openai.mdx

* Update azure-openai.zh-CN.mdx
2024-04-11 14:00:01 +08:00
CanisMinor 30dd95a6a0 📝 docs: Fix docs typo 2024-04-11 03:08:25 +00:00
CanisMinor e97f62f65e 📝 docs: Update docs to fit next RSC (#1939)
* 📝 docs: Update docs to fit next rsc

* 📝 docs: Replace links

* chore: fix i18n config

* 📝 docs: update seo
2024-04-11 00:28:48 +08:00
Arvin Xu f0a3cbad48 📝 docs: add railway deployment docs (#1755)
* 📝 docs: add railway deployment docs

* Update model-provider.mdx

* Update model-provider.mdx
2024-03-27 15:04:06 +08:00
旋律旋律你在干什么 388d3441df docs: fix typo (#1737) 2024-03-26 09:15:16 +08:00
CanisMinor 04d8e53e26 📝 docs: improve docs (#1597)
* 📝 docs: Update docs to fit the new docs theme

* 📝 docs: Update docs

* 🔧 chore: fix build

* Update tts.zh-CN.mdx

* Update tts.mdx

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
2024-03-17 22:23:30 +08:00
CanisMinor 536c885564 🔧 chore: add mdx lint (#1475)
* 🔧 chore: Add mdx lint

* 📝 docs: Update docs

* 📝 docs: update docs

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
2024-03-10 18:46:41 +08:00
Arvin Xu 311ca88e2f 📝 docs: add more deployment documents (#1393)
* 📝 docs: Creating self-hosting documents repocloud.mdx (#1388)

* Creating self-hosting documents repocloud.mdx

Adding deployment documentation for RepoCloud as requested :)

* Update repocloud.mdx

Modifying with svg instead of png as requested

* 📝 docs: create repocloud.zn-CN.mdx (#1389)

* Create repocloud.zn-CN.mdx

* Update repocloud.zn-CN.mdx

Changing png to svg

* 📝 docs: update docs

* 📝 docs: add netlify deployment

* 🔧 chore: add netlify.toml config

* ✨ docs: update platform deployment

* ✨ docs: update readme

---------

Co-authored-by: cosark <121065588+cosark@users.noreply.github.com>
2024-02-27 11:40:16 +08:00
arvinxx 087bc60aaa 📝 docs: update docs 2024-02-19 15:08:02 +08:00