eigent/server/.env.example
2025-08-21 00:43:48 +08:00

35 lines
No EOL
1 KiB
Text

# Environment Configuration Example
# Copy this file to .env and update with your own values
# Application Settings
debug=false
url_prefix=/api
# Security Configuration
# Generate with: openssl rand -hex 32
secret_key=CHANGE_THIS_TO_A_RANDOM_SECRET_KEY_USE_OPENSSL_RAND_HEX_32
# Database Configuration
# Use a strong password in production
database_url=postgresql://postgres:CHANGE_THIS_STRONG_PASSWORD@localhost:5432/eigent
# Docker Compose Database Settings (if using docker-compose)
POSTGRES_PASSWORD=CHANGE_THIS_STRONG_PASSWORD
POSTGRES_USER=postgres
POSTGRES_DB=eigent
# JWT Configuration
# Token expiration in seconds (3600 = 1 hour, recommended for production)
JWT_EXPIRATION=3600
# Chat Share Security
# Generate with: openssl rand -hex 32
CHAT_SHARE_SECRET_KEY=CHANGE_THIS_TO_A_RANDOM_SECRET_KEY
# Generate with: openssl rand -hex 16
CHAT_SHARE_SALT=CHANGE_THIS_TO_A_RANDOM_SALT
# Stack Auth Configuration (Optional)
# Leave empty if not using Stack Auth
STACK_AUTH_PROJECT_ID=
STACK_AUTH_API_KEY=
STACK_AUTH_BASE_URL=