Files
mtusi2026lab6/.env.example
T
2026-11-16 15:13:01 +03:00

32 lines
989 B
Bash

# Copy to .env for your LOCAL synthetic test environment; never commit .env.
# Compose supplies internal PostgreSQL, Redis, broker and S3 addresses.
APP_PORT=8080
SESSION_TTL_SECONDS=3600
MAX_UPLOAD_BYTES=10485760
MAX_IMAGE_PIXELS=40000000
MAX_PENDING_ATTACHMENTS=64
WORKER_CONCURRENCY=2
JOB_MAX_ATTEMPTS=5
JOB_TIMEOUT_SECONDS=60
JOB_MEMORY_MB=768
STAGING_RETENTION_SECONDS=86400
# Choose credentials locally.
POSTGRES_DB=messenger
POSTGRES_USER=messenger
POSTGRES_PASSWORD=replace-with-local-password
CACHE_TTL_SECONDS=30
MAX_REQUEST_BYTES=65536
MAX_INFLIGHT=32
MINIO_ROOT_USER=local-admin
MINIO_ROOT_PASSWORD=replace-with-admin-password
S3_ACCESS_KEY_ID=messenger-api
S3_SECRET_ACCESS_KEY=replace-with-api-password
# Reserved for lab6 observability setup.
OTEL_SERVICE_NAME=messenger-api
# Worker must set a distinct service.name.
OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4318
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
OTEL_RESOURCE_ATTRIBUTES=deployment.environment.name=lab