39 lines
1.3 KiB
Bash
39 lines
1.3 KiB
Bash
# Copy to .env for your LOCAL synthetic test environment; never commit .env.
|
|
# These are logical interface suggestions; map actual framework names in REPORT.md.
|
|
APP_HOST=0.0.0.0
|
|
APP_PORT=8080
|
|
APP_ENV=lab
|
|
SESSION_TTL_SECONDS=3600
|
|
# Choose credentials locally. File paths contain no secret values.
|
|
DATABASE_URL_FILE=/run/secrets/database_url
|
|
# Optional on 3, required use on 4 in lab2; Redis OR Valkey:
|
|
SESSION_STORE=redis
|
|
CACHE_URL_FILE=/run/secrets/cache_url
|
|
API_REPLICAS=2
|
|
IDEMPOTENCY_TTL_SECONDS=86400
|
|
S3_ENDPOINT=http://s3:9000
|
|
S3_REGION=us-east-1
|
|
S3_BUCKET=messenger-attachments
|
|
S3_ACCESS_KEY_ID_FILE=/run/secrets/s3_access_key_id
|
|
S3_SECRET_ACCESS_KEY_FILE=/run/secrets/s3_secret_access_key
|
|
MAX_UPLOAD_BYTES=10485760
|
|
MAX_IMAGE_PIXELS=40000000
|
|
BROKER_URL_FILE=/run/secrets/broker_url
|
|
WORKER_CONCURRENCY=2
|
|
JOB_MAX_ATTEMPTS=5
|
|
JOB_TIMEOUT_SECONDS=60
|
|
STAGING_RETENTION_SECONDS=86400
|
|
# Graceful shutdown: after SIGTERM readiness=503 for DRAIN_DELAY, then Shutdown up to SHUTDOWN_TIMEOUT.
|
|
DRAIN_DELAY=3s
|
|
SHUTDOWN_TIMEOUT=8s
|
|
# Reconciler (PostgreSQL <-> S3): background pass interval and safe grace period.
|
|
RECONCILE_INTERVAL=10m
|
|
RECONCILE_GRACE=1h
|
|
# Pipeline (lab5): published version, retry backoff (exponential with jitter), WebP quality, memory budget.
|
|
PIPELINE_VERSION=1
|
|
RETRY_BASE_DELAY=2s
|
|
RETRY_MAX_DELAY=60s
|
|
WEBP_QUALITY=80
|
|
WORKER_PIXEL_BUDGET=60000000
|
|
WORKER_REPLICAS=1
|