# Environment Variables for website-impl
# Copy this file to .env and fill in your values

# Application Settings
SECRET_KEY=your-secret-key-here-change-in-production
RUST_LOG=info

# Database Settings
# For SQLite (development)
DATABASE_URL=sqlite:data/dev_database.db

# For PostgreSQL (production)
# DATABASE_URL=postgresql://username:password@localhost/website-impl_db

# Server Settings
LEPTOS_SITE_ADDR=127.0.0.1:3030
LEPTOS_SITE_ROOT=/
LEPTOS_SITE_PKG_DIR=pkg
LEPTOS_SITE_NAME=website-impl

# Feature Flags
RUSTELO_AUTH_ENABLED=false
RUSTELO_EMAIL_ENABLED=false
RUSTELO_METRICS_ENABLED=true
RUSTELO_TLS_ENABLED=false

# Development Settings
RUSTELO_DEV_MODE=true
RUSTELO_HOT_RELOAD=true

# Asset Settings
RUSTELO_STATIC_DIR=public
RUSTELO_UPLOAD_DIR=uploads
RUSTELO_MAX_FILE_SIZE=10485760  # 10MB in bytes

# Site Content Configuration (PAP Compliance)
SITE_CONTENT_PATH=../site
SITE_SERVER_CONTENT_URL=/r
SITE_SERVER_ROOT_CONTENT=r

# Activities Feature
# Root directory for PDF files served via /api/activities/download/:id
ACTIVITY_ASSETS_PATH=site/assets/activities
# Root directory for Slidev static builds served via /slides/*
ACTIVITY_SLIDES_PATH=site/slides
# Hex-encoded 32-byte secret for HMAC callback tokens
# Generate with: openssl rand -hex 32
ACTIVITY_CALLBACK_SECRET=change_me_generate_with_openssl_rand_hex_32
