# Environment Configuration for Ubuntu Deployment
# Copy this file to .env and update with your actual values

# ============================================
# PostgreSQL Configuration
# ============================================
# Format: postgresql://username:password@host:port/database
POSTGRESQL_URI=postgresql://songlyric_user:your_password@192.168.10.130:5432/church_songlyric

# ============================================
# Flask Configuration
# ============================================
FLASK_PORT=5100
FLASK_ENV=production
SECRET_KEY=change-this-to-a-random-secret-key-min-32-chars

# ============================================
# Server Configuration
# ============================================
# Add your domain name or server IP here
# Multiple origins can be comma-separated
ALLOWED_ORIGINS=http://yourdomain.com,https://yourdomain.com,http://your-server-ip

# ============================================
# API Tokens (Optional)
# ============================================
# Get from https://genius.com/api-clients if you want Genius lyrics integration
GENIUS_TOKEN=your_genius_api_token_here

# ============================================
# File Upload Configuration
# ============================================
MAX_CONTENT_LENGTH=52428800  # 50MB in bytes
UPLOAD_FOLDER=uploads

# ============================================
# Database Configuration
# ============================================
# Database name (only if not included in MONGODB_URI)
DB_NAME=songlyric

# ============================================
# CORS Configuration
# ============================================
# Adjust based on your frontend domain
CORS_ORIGINS=*

# ============================================
# Security Settings
# ============================================
# Set to False in production
DEBUG=False

# Session configuration
SESSION_COOKIE_SECURE=True  # Set to True if using HTTPS
SESSION_COOKIE_HTTPONLY=True
SESSION_COOKIE_SAMESITE=Lax
