flnxi-Wu/.env.example
2026-05-25 16:10:18 +08:00

63 lines
1.8 KiB
Plaintext

# Base application configuration
NODE_ENV=development
# Public URLs
APP_PUBLIC_URL=https://your-domain.example.com
NEXTAUTH_URL=https://your-domain.example.com
NEXTAUTH_SECRET=replace-with-strong-secret
LICENSE_SERVER_URL=https://your-license-server.example.com
LICENSE_PROJECT_CODE=flnxi-sucai
# Database settings
DATABASE_URL=postgresql://username:password@host:5432/database
# Object storage (S3 compatible)
STORAGE_PROVIDER=s3
S3_ENDPOINT=https://s3.example.com
S3_BUCKET=your-bucket
S3_ACCESS_KEY_ID=your-access-key
S3_SECRET_ACCESS_KEY=your-secret-key
S3_REGION=us-east-1
S3_PUBLIC_DOMAIN=https://s3.example.com/your-bucket
S3_FILE_PATH=materials/
S3_ENV_PREFIX=
# Vector database (optional)
VECTOR_DB=pgvector
PGVECTOR_DB_URL=
# DingTalk login (optional)
DINGTALK_CLIENT_ID=
DINGTALK_CLIENT_SECRET=
NEXT_PUBLIC_DINGTALK_CALLBACK_URL=
# Frontend display
NEXT_PUBLIC_DEFAULT_HEADER_LOGO_URL=
NEXT_PUBLIC_DEFAULT_LOGIN_LOGO_URL=
NEXT_PUBLIC_INTRANET_URL=
NEXT_PUBLIC_PORTAL_BASE_URL=
NEXT_PUBLIC_PUBLIC_DOMAINS=portal.example.com
PUBLIC_DOMAINS=portal.example.com
# CORS and image whitelist
ALLOWED_ORIGINS=https://portal.example.com
IMAGE_REMOTE_HOSTS=s3.example.com
# License system security (REQUIRED for license validation)
# RSA public key for license signature verification (PEM format, replace \n with \\n)
LICENSE_PUBLIC_KEY=
# Local encryption key for secure storage (minimum 32 characters)
LOCAL_ENCRYPTION_KEY=
# Optional: one-time token for manual POST /api/system/init before any admin exists
SYSTEM_INIT_TOKEN=
# Optional: explicit initial admin identity; password omitted means generate a one-time password during initialization
INIT_ADMIN_EMAIL=admin@local.flnxi
INIT_ADMIN_PASSWORD=
# AI model (optional)
GEMINI_API_KEY=
GEMINI_API_BASE_URL=https://api.huandutech.com/v1
GEMINI_MODEL=gemini-2.0-flash-exp
# Append other custom variables below