uchill/chatnext/.env.example

73 lines
2.3 KiB
Plaintext

# ====================================
# MAIN ENVIRONMENT FILE FOR DOCKER
# ====================================
# Copy this to .env and update with your actual values
# PostgreSQL Database Configuration (Docker)
DB_NAME=chatbot_db
DB_USER=chatbot_user
DB_PASSWORD=chatbot_pass
DB_HOST=db
DB_PORT=5432
DATABASE_URL=postgresql://chatbot_user:chatbot_pass@db:5432/chatbot_db
# PostgreSQL Vector Extension
PGVECTOR_CONNECTION_STRING=postgresql://chatbot_user:chatbot_pass@db:5432/chatbot_db
PG_CHECKPOINT_URI=postgresql://chatbot_user:chatbot_pass@db:5432/chatbot_db
# Django Configuration
DJANGO_SETTINGS_MODULE=config.settings.development
DEBUG=1
DJANGO_SECRET_KEY=dev-secret-key-change-in-production
DJANGO_ADMIN_URL=chatbot-admin/
DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1,backend
DJANGO_PUBLIC_BASE_URL=http://localhost:8000
DJANGO_PUBLIC_API_URL=http://localhost:8000/api/v1
MASTER_ENCRYPTION_KEY=aklanmldffgdjuybj48592968431643
# Redis Configuration (Docker)
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_URL=redis://redis:6379/0
# Celery Configuration
CELERY_BROKER_URL=redis://redis:6379/0
CELERY_RESULT_BACKEND=redis://redis:6379/0
CELERY_CONCURRENCY=3
CELERY_MAX_TASKS=200
CELERYD_PREFETCH_MULTIPLIER=1
# CORS Settings
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://frontend:3000
# API Keys (REQUIRED - Add your actual keys!)
OPENAI_API_KEY=your-openai-api-key-here
# Optional API Keys (leave empty if not using)
TAVILY_API_KEY=
ANTHROPIC_API_KEY=
USER_AGENT=APARSOFT_AI_Chatbot_Tutorial_1.0
# NextAuth v5 environment variables
AUTH_SECRET=your-auth-secret
# Optional: Only needed if AUTH_SECRET isn't automatically detected
AUTH_URL=http://localhost:3000
AUTH_TRUST_HOST=true
NEXTAUTH_URL=http://localhost:3000
# GitHub OAuth (if using GitHub provider)
AUTH_GITHUB_ID=your-github-client-id
AUTH_GITHUB_SECRET=your-github-client-secret
# Google OAuth (if using Google provider)
AUTH_GOOGLE_ID=your-google-client-id
AUTH_GOOGLE_SECRET=your-google-client-secret
# Frontend Configuration
NEXT_PUBLIC_BASE_URL=http://localhost:8000
NEXT_PUBLIC_API_URL=http://localhost:8000/api/v1
NEXT_PUBLIC_ENCRYPTION_KEY=your-frontend-encryption-key
NEXT_PUBLIC_API_TIMEOUT=30000
NEXT_PUBLIC_API_VERSION=v1
NEXT_PUBLIC_WS_HOST=localhost:8000
NEXT_PUBLIC_WEBSOCKET_DEBUG=true