# TurfTracker Environment Configuration # Copy this file to .env and fill in your values # Database Configuration # You can use either individual fields OR a full DATABASE_URL (DATABASE_URL takes precedence) DB_HOST=db DB_PORT=5432 DB_NAME=turftracker DB_USER=turftracker DB_PASSWORD=password123 # DATABASE_URL=postgresql://turftracker:password123@db:5432/turftracker # JWT Secret - REQUIRED: Used for signing authentication tokens # Generate a secure random string (see README for generation commands) # NEVER use the default value in production! JWT_SECRET=your-super-secret-jwt-key-change-this-in-production # Authentik OAuth2 Configuration (Optional) # Configure these to enable SSO login through your Authentik instance AUTHENTIK_CLIENT_ID=your-authentik-client-id AUTHENTIK_CLIENT_SECRET=your-authentik-client-secret AUTHENTIK_BASE_URL=https://your-authentik-domain.com AUTHENTIK_CALLBACK_URL=https://turftracker.kaspers.us/api/auth/authentik/callback # Weather API Configuration # Get a free API key from https://openweathermap.org/api WEATHER_API_KEY=your-openweathermap-api-key # Application URLs (automatically configured for production) FRONTEND_URL=https://turftracker.kaspers.us # Node Environment NODE_ENV=development # Port Configuration (optional - defaults are set) PORT=5000 FRONTEND_PORT=3000