# E2E harness env — points at the hermetic test Postgres (e2e/docker-compose.yml, port 5544).
# Loaded by test/setup/load-env.ts before the Nest AppModule boots. NEVER points at a real DB.
NODE_ENV=test
PORT=4099

# Prisma — passenger schema in the test edr_database
DATABASE_URL=postgresql://edr:edr_secret@localhost:5544/edr_database?schema=passenger

# TypeORM / IAM — shared iam schema, same test DB
DATABASE_HOST=localhost
DATABASE_PORT=5544
DATABASE_NAME=edr_database
DATABASE_USER=edr
DATABASE_PASSWORD=edr_secret
DATABASE_SCHEMA=iam

# Brokers / external systems OFF for a hermetic boot
RABBITMQ_ENABLED=false
RABBITMQ_URL=amqp://localhost:5672
EMAIL_QUEUE=email_queue
SMS_QUEUE=sms_queue
PAYMENT_RABBITMQ_URL=amqp://edr:edr_secret@localhost:5672/payment
PAYMENT_EVENTS_PREFETCH=10
IAM_ENABLED=false
FAYDA_ENABLED=false

# MinIO — client is constructed at boot but never contacted in tests
MINIO_ENDPOINT=localhost
MINIO_PORT=9000
MINIO_USE_SSL=false
MINIO_ACCESS_KEY=minioadmin
MINIO_SECRET_KEY=minioadmin
MINIO_BUCKET=edr-test

CORS_ORIGINS=http://localhost:5174,http://localhost:5184
FE_BASE_URL=http://localhost:5184
INVITATION_EXPIRY_DATE=30

# JWT / IAM token contract — fixed test secrets (min 32 chars). Let tests mint IAM tokens.
JWT_SECRET=test-jwt-secret-000000000000000000000000
JWT_EXPIRES_IN=7d
JWT_ACCESS_TOKEN_SECRET=test-access-secret-0000000000000000000000
JWT_ACCESS_TOKEN_EXPIRES=1h
JWT_REFRESH_TOKEN_SECRET=test-refresh-secret-000000000000000000000
JWT_REFRESH_TOKEN_EXPIRES=7d

DEFAULT_LOCALE=en
SUPPORTED_LOCALES=en,am,fr,om
SESSION_INACTIVITY_MINUTES=30

# Payment providers — WALLET is fully internal; others unused in the API-level suite
PAYMENT_PROVIDERS_ENABLED=TELEBIRR,CBE_BIRR,EBIRR,CARD,WALLET,WAAFI

# Staff/org seeding off — the harness builds its own deterministic fixtures
SEED_EDR_PASSENGER_ORG=false
SEED_PASSENGER_STAFF=false
DEFAULT_PASSWORD=Test@1234
