lobe-chat
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
3APP_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
7KEY_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
11DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/lobe12
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
18NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg19# Required: Specify the authentication provider (e.g., Logto)
20NEXT_AUTH_SSO_PROVIDERS=logto21# Required: NextAuth URL for callbacks
22NEXTAUTH_URL=https://lobe.example.com/api/auth23
24# NextAuth providers configuration (example using Logto)
25# For other providers, see: https://lobehub.com/docs/self-hosting/environment-variables/auth
26AUTH_LOGTO_CLIENT_ID=YOUR_LOGTO_CLIENT_ID27AUTH_LOGTO_CLIENT_SECRET=YOUR_LOGTO_CLIENT_SECRET28AUTH_LOGTO_ISSUER=https://lobe-auth-api.example.com/oidc29
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)
36S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID37# Required: S3 Secret Access Key (for MinIO, invalid until manually created in MinIO UI)
38S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEY39# Required: S3 Endpoint for server/client connections to S3 API
40S3_ENDPOINT=https://lobe-s3-api.example.com41# Required: S3 Bucket (invalid until manually created in MinIO UI)
42S3_BUCKET=lobe43# Required: S3 Public Domain for client access to unstructured data
44S3_PUBLIC_DOMAIN=https://lobe-s3-api.example.com45# 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
48S3_ENABLE_PATH_STYLE=149
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