forked from mtusi2026/mtusi2026lab4
35 lines
1.4 KiB
Bash
35 lines
1.4 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
|
|
# Host port published by the LB. Default 8080; change if that port is already taken.
|
|
LB_PORT=8080
|
|
APP_ENV=lab
|
|
SESSION_TTL_SECONDS=3600
|
|
# compose.yaml gives api/migrate DB_HOST/DB_USER/DB_NAME and
|
|
# DB_PASSWORD_FILE=/run/secrets/postgres_password (secret from POSTGRES_PASSWORD).
|
|
POSTGRES_USER=messenger
|
|
POSTGRES_PASSWORD=change-me-locally
|
|
POSTGRES_DB=messenger
|
|
SESSION_STORE=postgres
|
|
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
|
|
# compose.yaml gives minio MINIO_ROOT_USER_FILE / MINIO_ROOT_PASSWORD_FILE
|
|
# (secrets from MINIO_ROOT_USER / MINIO_ROOT_PASSWORD). Root is bootstrap-only.
|
|
# The API user is created by minio-init and limited to S3_BUCKET.
|
|
# App containers should read the files below, not these values as env vars.
|
|
MINIO_ROOT_USER=messenger-root
|
|
MINIO_ROOT_PASSWORD=change-me-minio-root
|
|
S3_ACCESS_KEY_ID=messenger-api
|
|
S3_SECRET_ACCESS_KEY=change-me-minio-api
|
|
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
|
|
# Reconciler does not delete originals younger than this (seconds). Overridable per run with --grace-seconds.
|
|
RECONCILE_GRACE_SECONDS=900
|