Files
mtusi2026lab7/.env.example

58 lines
2.1 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=8443
APP_ENV=lab
SESSION_TTL_SECONDS=3600
# Copy to .env and replace every placeholder. Never commit secrets.
SESSION_STORE=postgres
API_REPLICAS=2
IDEMPOTENCY_TTL_SECONDS=86400
PGDATABASE=postgres
PGUSER=messenger
PGPASSWORD=replace-with-random-local-password
DB_POOL_MAX_SIZE=10
S3_ENDPOINT=https://s3:9000
S3_REGION=us-east-1
S3_BUCKET=messenger-attachments
MINIO_ROOT_USER=lab7admin
MINIO_ROOT_PASSWORD=replace-with-random-local-password
MAX_UPLOAD_BYTES=10485760
MAX_IMAGE_PIXELS=40000000
RABBITMQ_DEFAULT_USER=lab7worker
RABBITMQ_DEFAULT_PASS=replace-with-random-url-safe-password
API_DB_USER=messenger_api
API_DB_PASSWORD=replace-with-random-local-password
WORKER_DB_USER=messenger_worker
WORKER_DB_PASSWORD=replace-with-random-local-password
S3_API_ACCESS_KEY=messenger-api
S3_API_SECRET_KEY=replace-with-random-local-password
S3_WORKER_ACCESS_KEY=messenger-worker
S3_WORKER_SECRET_KEY=replace-with-random-local-password
BROKER_API_USER=messenger-api
BROKER_API_PASSWORD=replace-with-random-url-safe-password
BROKER_WORKER_USER=messenger-worker
BROKER_WORKER_PASSWORD=replace-with-random-url-safe-password
WORKER_CONCURRENCY=2
JOB_MAX_ATTEMPTS=5
JOB_TIMEOUT_SECONDS=60
STAGING_RETENTION_SECONDS=86400
OTEL_SERVICE_NAME=messenger-api
# Worker must set a distinct service.name.
OTEL_EXPORTER_OTLP_ENDPOINT=https://otel-collector:4318
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
OTEL_RESOURCE_ATTRIBUTES=deployment.environment.name=lab
# TLS and OpenBao: actual paths/ports depend on your implemented trust matrix.
PUBLIC_BASE_URL=https://localhost:8443
TLS_CA_FILE=/run/secrets/ca.crt
TLS_CERT_FILE=/run/secrets/service.crt
TLS_KEY_FILE=/run/secrets/service.key
BAO_ADDR=https://openbao:8200
BAO_CACERT=/run/secrets/bao-ca.crt
# No root token here. Bootstrap operator -> short-lived service auth -> scoped token.
ARGON2_MEMORY_KIB=19456
ARGON2_ITERATIONS=2
ARGON2_PARALLELISM=1
LOGIN_LIMIT_PER_MINUTE=30
GRAFANA_ADMIN_PASSWORD=replace-with-random-local-password