# Copy this file to .env and adjust values for your machine.
# Never commit real secrets, API keys, or production credentials.

# Application
APP_NAME=Crime Prediction System
APP_ENV=development
APP_DEBUG=true
APP_HOST=127.0.0.1
APP_PORT=8000
APP_VERSION=0.3.0
LOG_LEVEL=INFO

# Public origin used by the frontend (no trailing slash)
APP_PUBLIC_URL=http://127.0.0.1:8000

# Comma-separated browser origins allowed to call the API
CORS_ORIGINS=http://127.0.0.1:8000,http://localhost:8000

# Database (XAMPP MySQL / MariaDB)
# Local development uses an empty password for the root user.
DB_HOST=127.0.0.1
DB_PORT=3306
DB_NAME=crime_prediction
DB_USER=root
DB_PASSWORD=
DB_DRIVER=mysql+pymysql

# Optional full SQLAlchemy URL. If set, it overrides the DB_* parts above.
# DATABASE_URL=mysql+pymysql://root:@127.0.0.1:3306/crime_prediction

# Authentication (JWT Bearer access tokens)
# Development-only secret — replace before any shared or production deployment.
SECRET_KEY=dev-crime-prediction-local-secret-key-32c
ACCESS_TOKEN_EXPIRE_MINUTES=60
JWT_ALGORITHM=HS256

# Excel import
IMPORT_MAX_UPLOAD_BYTES=15728640

INITIAL_ADMIN_USERNAME=admin
INITIAL_ADMIN_EMAIL=admin@gmail.com
INITIAL_ADMIN_PASSWORD=password@123