mirror of
https://github.com/lobehub/lobehub
synced 2026-04-21 17:47:27 +00:00
* 🔥 chore(docker-compose): remove Casdoor SSO dependency Casdoor is no longer needed since BetterAuth now supports email/password registration natively. LOBE-3907 * ♻️ refactor(docker-compose): restructure directories - Rename local/ to dev/ for development dependencies - Remove logto/ and zitadel/ from production/ - Restore Casdoor config in production/grafana/ - Simplify dev/ to core services only (postgresql, redis, rustfs, searxng) - Update docker-compose.development.yml to use dev/ - Remove minio-bucket.config.json (switched to rustfs) * ♻️ refactor(docker-compose): simplify dev environment setup - Remove docker-compose.development.yml, use dev/docker-compose.yml directly - Add npm scripts: dev:docker, dev:docker:down, dev:docker:reset - Simplify .env.example.development (remove variable refs, redundant vars) - Update docker-compose/dev/.env.example (consistent passwords) - Add docker-compose/dev/data/ to .gitignore - Update setup docs: use npm scripts, remove image generation section * 🔧 chore: add SSRF_ALLOW_PRIVATE_IP_ADDRESS to dev env example * 🔒 security: auto-generate KEY_VAULTS_SECRET and AUTH_SECRET in setup.sh - Remove hardcoded secrets from docker-compose.yml - Add placeholders to .env.example files - Generate secrets dynamically in setup.sh using openssl rand -base64 32 * 🔧 chore(docker-compose): expose SearXNG port and improve dev scripts - Add SearXNG port mapping (8180:8080) for host access - Use --wait flag in dev:docker to ensure services are healthy - Include db:migrate in dev:docker:reset for one-command reset - Update MinIO reference to RustFS in zh-CN docs - Add SearXNG to service URLs and port conflict docs
41 lines
2.9 KiB
Text
41 lines
2.9 KiB
Text
# Proxy, if you need it
|
|
# HTTP_PROXY=http://localhost:7890
|
|
# HTTPS_PROXY=http://localhost:7890
|
|
|
|
# Allowed email addresses for login, separated by commas
|
|
# When set, only emails in the list can log in, other users cannot log in
|
|
# Leave empty to allow all users to register
|
|
# AUTH_ALLOWED_EMAILS=user1@example.com,user2@example.com
|
|
|
|
# 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 ======
|
|
# ===========================
|
|
# if no special requirements, no need to change
|
|
LOBE_PORT=3210
|
|
RUSTFS_PORT=9000
|
|
APP_URL=http://localhost:3210
|
|
# INTERNAL_APP_URL is optional, used for server-to-server calls
|
|
# to bypass CDN/proxy. If not set, defaults to APP_URL.
|
|
# Example: INTERNAL_APP_URL=http://localhost:3210
|
|
|
|
# Secrets (auto-generated by setup.sh)
|
|
KEY_VAULTS_SECRET=YOUR_KEY_VAULTS_SECRET
|
|
AUTH_SECRET=YOUR_AUTH_SECRET
|
|
|
|
# Postgres related, which are the necessary environment variables for DB
|
|
LOBE_DB_NAME=lobechat
|
|
POSTGRES_PASSWORD=uWNZugjBqixf8dxC
|
|
|
|
# RUSTFS S3 configuration
|
|
RUSTFS_ACCESS_KEY=admin
|
|
RUSTFS_SECRET_KEY=YOUR_RUSTFS_PASSWORD
|
|
|
|
# Configure the bucket information of RUSTFS
|
|
S3_ENDPOINT=http://localhost:9000
|
|
RUSTFS_LOBE_BUCKET=lobe
|
|
|
|
JWKS_KEY={"keys":[{"d":"PVoFyqyrGstB8wU52S7gqqQQdZLtin_thcEM0nrNtqp9U-NlKLlhgEcWp5t89ycgvhsAzmrRbezGj4JBTr3jn7eWdwQpPJNYiipnsgeJn0pwsB0H2dMqtavxinoPVXkMTOuGHMTFhhyguFBw2JbIL0PTQUcUlXjv40OoJpYHZeggSxgfV-TuxjwW8Ll4-n84M5IOi6A53RvioE-Hm1iyIc2XLBCfyOu-SbAQYi8HzrA64kCxobAB0peLQMiAzfZmwPKiGOhnhKrAlYmG02qFnbUYiJu_-AXwsAyGv9S9i6dwK7QXaGGWYyis8LlPpd_JmPrBnrWomwDlI045NUMWZQ","dp":"OSXI2NBBZl2r0Dpf4-1z44A_jC5lOyXtJhXQYnSXy5eIuxTJcEtkUYagGEwnREO4Q3t-4J-lT_6Y71M1ZlgKG1upwfw1O4aE3vGpHOik9iZYYCjA8fe5uBfOpX1ELmOtHNoHRhMtyjuPxSFXLlSp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