Files
mtusi2026lab7/.env.example
T
lxstatmose 2c2734df60
Skeleton contracts / contracts (pull_request) Canceled after 0s
Лабораторная 7: TLS, mTLS и OpenBao
2026-11-28 01:28:30 +03:00

42 lines
1.5 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/runtime/database_url
# Optional on 3, required use on 4 in lab2; Redis OR Valkey:
SESSION_STORE=redis
CACHE_URL_FILE=/run/runtime/cache_url
API_REPLICAS=2
IDEMPOTENCY_TTL_SECONDS=86400
S3_ENDPOINT=https://s3:9000
S3_REGION=us-east-1
S3_BUCKET=messenger-attachments
S3_ACCESS_KEY_ID_FILE=/run/runtime/s3_access_key_id
S3_SECRET_ACCESS_KEY_FILE=/run/runtime/s3_secret_access_key
MAX_UPLOAD_BYTES=10485760
MAX_IMAGE_PIXELS=40000000
# RabbitMQ uses certificate-bound EXTERNAL authentication.
WORKER_CONCURRENCY=1
JOB_MAX_ATTEMPTS=5
JOB_TIMEOUT_SECONDS=20
STAGING_RETENTION_SECONDS=86400
OTEL_SERVICE_NAME=messenger-api
# Worker must set a distinct service.name.
OTEL_EXPORTER_OTLP_ENDPOINT=https://otel-collector:4317
OTEL_EXPORTER_OTLP_PROTOCOL=grpc
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/ca/ca.crt
TLS_CERT_FILE=/run/tls/server.crt
TLS_KEY_FILE=/run/tls/server.key
BAO_ADDR=https://openbao:8200
BAO_CACERT=/run/ca/ca.crt
# No root token here. Bootstrap operator -> short-lived service auth -> scoped token.
ARGON2_MEMORY_KIB=19456
ARGON2_ITERATIONS=2
ARGON2_PARALLELISM=1