lobe-chat

Форк
0
56 строк · 2.8 Кб
1
# Required: LobeChat domain for tRPC calls
2
# Ensure this domain is whitelisted in your NextAuth providers and S3 service CORS settings
3
APP_URL=https://lobe.example.com/
4

5
# Postgres related environment variables
6
# Required: Secret key for encrypting sensitive information. Generate with: openssl rand -base64 32
7
KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ=
8
# Required: Postgres database connection string
9
# Format: postgresql://username:password@host:port/dbname
10
# If using Docker, you can use the container name as the host
11
DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/lobe
12

13
# NEXT_AUTH related environment variables
14
# Supports auth0, Azure AD, GitHub, Authentik, Zitadel, Logto, etc.
15
# For supported providers, see: https://lobehub.com/docs/self-hosting/advanced/auth#next-auth
16
# If you have ACCESS_CODE, please remove it. We use NEXT_AUTH as the sole authentication source
17
# Required: NextAuth secret key. Generate with: openssl rand -base64 32
18
NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
19
# Required: Specify the authentication provider (e.g., Logto)
20
NEXT_AUTH_SSO_PROVIDERS=logto
21
# Required: NextAuth URL for callbacks
22
NEXTAUTH_URL=https://lobe.example.com/api/auth
23

24
# NextAuth providers configuration (example using Logto)
25
# For other providers, see: https://lobehub.com/docs/self-hosting/environment-variables/auth
26
AUTH_LOGTO_CLIENT_ID=YOUR_LOGTO_CLIENT_ID
27
AUTH_LOGTO_CLIENT_SECRET=YOUR_LOGTO_CLIENT_SECRET
28
AUTH_LOGTO_ISSUER=https://lobe-auth-api.example.com/oidc
29

30
# Proxy settings (if needed, e.g., when using GitHub as an auth provider)
31
# HTTP_PROXY=http://localhost:7890
32
# HTTPS_PROXY=http://localhost:7890
33

34
# S3 related environment variables (example using MinIO)
35
# Required: S3 Access Key ID (for MinIO, invalid until manually created in MinIO UI)
36
S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID
37
# Required: S3 Secret Access Key (for MinIO, invalid until manually created in MinIO UI)
38
S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEY
39
# Required: S3 Endpoint for server/client connections to S3 API
40
S3_ENDPOINT=https://lobe-s3-api.example.com
41
# Required: S3 Bucket (invalid until manually created in MinIO UI)
42
S3_BUCKET=lobe
43
# Required: S3 Public Domain for client access to unstructured data
44
S3_PUBLIC_DOMAIN=https://lobe-s3-api.example.com
45
# Optional: S3 Enable Path Style
46
# Use 0 for mainstream S3 cloud providers; use 1 for self-hosted MinIO
47
# See: https://lobehub.com/docs/self-hosting/advanced/s3#s-3-enable-path-style
48
S3_ENABLE_PATH_STYLE=1
49

50
# Other basic environment variables (as needed)
51
# See: https://lobehub.com/docs/self-hosting/environment-variables/basic
52
# Note: For server versions, the API must support embedding models (OpenAI text-embedding-3-small) for file processing
53
# You don't need to specify this model in OPENAI_MODEL_LIST
54
# OPENAI_API_KEY=sk-xxxx
55
# OPENAI_PROXY_URL=https://api.openai.com/v1
56
# OPENAI_MODEL_LIST=...
57

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.