candle-annotator/.env.example
Marko Djordjevic 33ed7b7cb7 Fix auth redirect to 0.0.0.0 and credentials sign-in error
- Add AUTH_URL env var to docker-compose.yml and .env/.env.example so
  NextAuth builds correct redirect URLs instead of falling back to the
  Docker bind address (0.0.0.0:3000)
- Normalize email to lowercase in authorize() to match how the register
  route stores emails, preventing case-sensitive lookup mismatches

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-20 23:42:24 +01:00

34 lines
1.2 KiB
Text

NODE_ENV=production
PORT=3000
DATABASE_URL=postgresql://your_db_user:change_me_to_a_strong_password@postgres:5432/candle_annotator
# API key for authenticating requests between Next.js and ML service
# Generate a strong random value: openssl rand -hex 32
API_KEY=change_me_to_a_strong_random_key
# ML Inference Service Configuration
INFERENCE_API_URL=http://localhost:8001
INFERENCE_API_TIMEOUT=30000
INFERENCE_BATCH_TIMEOUT=120000
NEXT_PUBLIC_PREDICTIONS_ENABLED=true
# Authentication Configuration (Auth.js v5)
# Generate a strong random value for AUTH_SECRET: openssl rand -base64 32
AUTH_SECRET=change_me_to_a_strong_random_secret
# Google OAuth Configuration
# Get these from Google Cloud Console: https://console.cloud.google.com/
AUTH_GOOGLE_ID=your_google_oauth_client_id
AUTH_GOOGLE_SECRET=your_google_oauth_client_secret
# Auth.js base URL - set to the public URL of your app
AUTH_URL=http://localhost:3000
# Auth.js trust host configuration
# Set to true when using HTTP (e.g., localhost), should be false in production with HTTPS
AUTH_TRUST_HOST=true
# Default admin user credentials
# Change these to your desired default admin email and password
DEFAULT_ADMIN_EMAIL=admin@example.com
DEFAULT_ADMIN_PASSWORD=change_me_to_a_strong_password