mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-27 08:36:24 +00:00
72 lines
No EOL
2.6 KiB
Text
72 lines
No EOL
2.6 KiB
Text
# ================================
|
|
# EIGENT SERVER CONFIGURATION
|
|
# ================================
|
|
# Copy this file to .env and update with your own values
|
|
# IMPORTANT: Never commit .env with real values to version control
|
|
|
|
# ================================
|
|
# Application Settings
|
|
# ================================
|
|
debug=false
|
|
url_prefix=/api
|
|
|
|
# ================================
|
|
# Security Configuration - MUST CHANGE!
|
|
# ================================
|
|
# Generate a secure secret key with: openssl rand -hex 32
|
|
# This is used for JWT token signing and must be kept secret
|
|
secret_key=CHANGE_THIS_TO_A_RANDOM_SECRET_KEY_USE_OPENSSL_RAND_HEX_32
|
|
|
|
# ================================
|
|
# Database Configuration
|
|
# ================================
|
|
# PostgreSQL connection string
|
|
# Format: postgresql://username:password@host:port/database
|
|
# For Docker setup, use 'eigent_postgres' as host
|
|
# For external PostgreSQL, update with your server details
|
|
database_url=postgresql://postgres:CHANGE_THIS_STRONG_PASSWORD@eigent_postgres:5432/eigent
|
|
|
|
# Docker Compose Database Settings
|
|
# These must match the password in database_url above
|
|
POSTGRES_PASSWORD=CHANGE_THIS_STRONG_PASSWORD
|
|
POSTGRES_USER=postgres
|
|
POSTGRES_DB=eigent
|
|
|
|
# ================================
|
|
# JWT Configuration
|
|
# ================================
|
|
# Token expiration in seconds
|
|
# 3600 = 1 hour (recommended for production)
|
|
# 86400 = 24 hours (convenient for development)
|
|
JWT_EXPIRATION=3600
|
|
|
|
# ================================
|
|
# Chat Share Security
|
|
# ================================
|
|
# Used for encrypting shared chat links
|
|
# 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
|
|
|
|
# ================================
|
|
# Optional: Stack Auth Configuration
|
|
# ================================
|
|
# Only configure if using Stack Auth for authentication
|
|
# Leave empty if using local authentication only
|
|
STACK_AUTH_PROJECT_ID=
|
|
STACK_AUTH_API_KEY=
|
|
STACK_AUTH_BASE_URL=
|
|
|
|
# ================================
|
|
# SETUP INSTRUCTIONS
|
|
# ================================
|
|
# 1. Copy this file: cp .env.example .env
|
|
# 2. Generate secure keys:
|
|
# echo "secret_key=$(openssl rand -hex 32)"
|
|
# echo "CHAT_SHARE_SECRET_KEY=$(openssl rand -hex 32)"
|
|
# echo "CHAT_SHARE_SALT=$(openssl rand -hex 16)"
|
|
# 3. Choose a strong database password
|
|
# 4. Update the .env file with generated values
|
|
# 5. Ensure POSTGRES_PASSWORD matches the password in database_url
|
|
# 6. Never commit the .env file with real values! |