# Copy to .env for local development:  cp .env.example .env
# These defaults match the services in docker-compose.yml.

# PostgreSQL connection string (used for local dev and the test suite).
# The role must be allowed to CREATE DATABASE (sqlx::test provisions temp DBs).
DATABASE_URL=postgres://postgres:postgres@localhost:5432/cms_dev

# HTTP bind address.
BIND_ADDR=0.0.0.0:8080

# User-facing product name (OpenAPI title, page title). Set the real name at deploy time.
APP_NAME=Collection Management System

# Local development is plain HTTP. Browsers drop `Secure` cookies on http://localhost,
# so the session cookie must NOT be Secure-only or login will silently fail. Set this
# back to `true` (the default) for any HTTPS deployment.
SESSION_COOKIE_SECURE=false

# Meilisearch (matches docker-compose.yml). Both must be set to enable search;
# leave them unset to run with search disabled.
MEILI_URL=http://localhost:7700
MEILI_MASTER_KEY=masterKey
