mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-26 13:19:34 +07:00
53 lines
2.6 KiB
Plaintext
53 lines
2.6 KiB
Plaintext
# Required: LobeChat domain for tRPC calls
|
|
# Ensure this domain is whitelisted in your SSO providers and S3 service CORS settings
|
|
APP_URL=https://lobe.example.com/
|
|
|
|
# Postgres related environment variables
|
|
# Required: Secret key for encrypting sensitive information. Generate with: openssl rand -base64 32
|
|
KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ=
|
|
# Required: Postgres database connection string
|
|
# Format: postgresql://username:password@host:port/dbname
|
|
# If using Docker, you can use the container name as the host
|
|
DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/lobe
|
|
|
|
# Authentication related environment variables
|
|
# Supports Auth0, Azure AD, GitHub, Authentik, Zitadel, Logto, etc.
|
|
# For supported providers, see: https://lobehub.com/docs/self-hosting/advanced/auth
|
|
# If you have ACCESS_CODE, please remove it. We use Better Auth as the sole authentication source
|
|
# Required: Auth secret key. Generate with: openssl rand -base64 32
|
|
AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
|
|
# Required: Specify the authentication provider (e.g., Logto)
|
|
AUTH_SSO_PROVIDERS=logto
|
|
|
|
# SSO providers configuration (example using Logto)
|
|
# For other providers, see: https://lobehub.com/docs/self-hosting/environment-variables/auth
|
|
AUTH_LOGTO_ID=YOUR_LOGTO_ID
|
|
AUTH_LOGTO_SECRET=YOUR_LOGTO_SECRET
|
|
AUTH_LOGTO_ISSUER=https://lobe-auth-api.example.com/oidc
|
|
|
|
# Proxy settings (if needed, e.g., when using GitHub as an auth provider)
|
|
# HTTP_PROXY=http://localhost:7890
|
|
# HTTPS_PROXY=http://localhost:7890
|
|
|
|
# S3 related environment variables (example using MinIO)
|
|
# Required: S3 Access Key ID (for MinIO, invalid until manually created in MinIO UI)
|
|
S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID
|
|
# Required: S3 Secret Access Key (for MinIO, invalid until manually created in MinIO UI)
|
|
S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEY
|
|
# Required: S3 Endpoint for server/client connections to S3 API
|
|
S3_ENDPOINT=https://lobe-s3-api.example.com
|
|
# Required: S3 Bucket (invalid until manually created in MinIO UI)
|
|
S3_BUCKET=lobe
|
|
# 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-style
|
|
S3_ENABLE_PATH_STYLE=1
|
|
|
|
# Other basic environment variables (as needed)
|
|
# See: https://lobehub.com/docs/self-hosting/environment-variables/basic
|
|
# Note: For server versions, the API must support embedding models (OpenAI text-embedding-3-small) for file processing
|
|
# You don't need to specify this model in OPENAI_MODEL_LIST
|
|
# OPENAI_API_KEY=sk-xxxx
|
|
# OPENAI_PROXY_URL=https://api.openai.com/v1
|
|
# OPENAI_MODEL_LIST=...
|