Files
mtusi2026lab6/.env.example
T

38 lines
1.3 KiB
Bash

# Local synthetic credentials for compose. Copy to .env; never commit .env.
# The application reads DATABASE_URL, S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY and BROKER_URL.
# *_FILE variables from the course worksheet are accepted too when the direct variable is empty.
POSTGRES_USER=messenger
POSTGRES_PASSWORD=replace-with-local-secret
POSTGRES_DB=messenger
S3_ACCESS_KEY=replace-with-local-secret
S3_SECRET_KEY=replace-with-local-secret
RABBITMQ_USER=messenger
RABBITMQ_PASSWORD=replace-with-local-secret
GRAFANA_ADMIN_PASSWORD=replace-with-local-secret
APP_HOST=0.0.0.0
APP_PORT=8080
APP_ENV=lab
SESSION_TTL_SECONDS=3600
DATABASE_URL=postgresql://messenger:replace-with-local-secret@postgres:5432/messenger
SESSION_STORE=postgres
API_REPLICAS=2
IDEMPOTENCY_TTL_SECONDS=86400
S3_ENDPOINT=http://s3:8333
S3_REGION=us-east-1
S3_BUCKET=messenger-attachments
S3_ACCESS_KEY_ID=replace-with-local-secret
S3_SECRET_ACCESS_KEY=replace-with-local-secret
MAX_UPLOAD_BYTES=10485760
MAX_IMAGE_PIXELS=40000000
BROKER_URL=amqp://messenger:replace-with-local-secret@rabbitmq:5672/%2F
WORKER_CONCURRENCY=2
JOB_MAX_ATTEMPTS=5
JOB_TIMEOUT_SECONDS=60
STAGING_RETENTION_SECONDS=86400
OTEL_SERVICE_NAME=messenger-api
OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4318
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
OTEL_RESOURCE_ATTRIBUTES=deployment.environment.name=lab