open-notebook/deploy/non-docker/env.online-dev.example
2026-05-12 18:32:53 +08:00

65 lines
2.1 KiB
Text

# Lumina non-Docker online development/test deployment
# Copy this file to /opt/lumina/.env and update every CHANGE_ME value.
# Public URL used by the Next.js frontend and API CORS.
API_URL=https://lumina.yinhour.com
INTERNAL_API_URL=http://127.0.0.1:5055
OPEN_NOTEBOOK_CORS_ORIGINS=https://lumina.yinhour.com
# Keep auth enabled for any Internet-facing test site.
OPEN_NOTEBOOK_AUTH_MODE=jwt
ALLOW_PUBLIC_REGISTRATION=false
# Optional WeChat Open Platform web login.
# The redirect URI must be registered in WeChat exactly as shown here.
# If ALLOW_PUBLIC_REGISTRATION=false, WeChat can only sign in existing bound users.
WECHAT_OPEN_APP_ID=
WECHAT_OPEN_APP_SECRET=
WECHAT_OPEN_REDIRECT_URI=https://lumina.yinhour.com/login/wechat/callback
# Required for saving AI provider credentials.
OPEN_NOTEBOOK_ENCRYPTION_KEY=CHANGE_ME_generate_with_openssl_rand_base64_48
# Initial admin bootstrap. Use once with scripts/init-admin.py, then keep private.
LUMINA_ADMIN_USERNAME=admin
LUMINA_ADMIN_PASSWORD=CHANGE_ME_generate_with_openssl_rand_base64_24
# API process.
API_HOST=127.0.0.1
API_PORT=5055
API_RELOAD=false
# Frontend process.
HOSTNAME=127.0.0.1
PORT=8502
# SurrealDB connection. Match these with the surrealdb systemd service.
SURREAL_URL=ws://127.0.0.1:8000/rpc
SURREAL_USER=root
SURREAL_PASSWORD=CHANGE_ME_generate_with_openssl_rand_base64_32
SURREAL_NAMESPACE=open_notebook
SURREAL_DATABASE=open_notebook
# Queue and database protection.
SURREAL_POOL_SIZE=10
SURREAL_POOL_ACQUIRE_TIMEOUT=5
SURREAL_QUERY_TIMEOUT=30
SURREAL_TRANSACTION_RETRY_ATTEMPTS=3
SURREAL_COMMANDS_MAX_TASKS=5
# Email verification. For a closed test site, keep debug or configure SMTP/Resend.
EMAIL_PROVIDER=debug
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USER=
SMTP_PASSWORD=
SMTP_FROM=noreply@lumina.ai
SMTP_USE_TLS=true
RESEND_API_KEY=
APP_NAME=Lumina
# Project-specific content settings currently used by this repo.
CCORE_DOCUMENT_ENGINE=docling
ENABLE_KNOWLEDGE_GRAPH=true
KG_ENTITY_TYPES=MATERIAL,CHEMICAL,PROPERTY,CONDITION,RESULT,EXPERIMENT,PRODUCT,METHOD
KG_RELATION_TYPES=USES_MATERIAL,HAS_CONDITION,YIELDS_RESULT,CONTAINS_CHEMICAL,MEASURES_PROPERTY,COMPARES_WITH,APPLIES_TO