-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
93 lines (78 loc) · 4.71 KB
/
Copy path.env.example
File metadata and controls
93 lines (78 loc) · 4.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# ─── Runtime ──────────────────────────────────────────────────────────────────
# Current environment: development | staging | production
ENV=development
# ─── Server ───────────────────────────────────────────────────────────────────
HOST=0.0.0.0
PORT=5010
# ─── Database ─────────────────────────────────────────────────────────────────
# Docker Compose: DB_HOST=postgres
# Local dev (no compose): DB_HOST=localhost
DB_HOST=localhost
DB_PORT=5432
DB_USER=mpiper
DB_PASSWORD=changeme
DB_NAME=mpiper
# DB_SSL_MODE defaults to "disable" in the API server
# DB_SSL_MODE=require
# DB_SSL_CERT_PATH=/path/to/cert.pem # Python worker only
# Connection pool (Python worker)
DB_POOL_SIZE=10
DB_POOL_TIMEOUT=30
DB_MAX_RETRIES=5
DB_RETRY_DELAY=5
# ─── Redis ────────────────────────────────────────────────────────────────────
# Docker Compose: REDIS_CONNECTION_STRING=redis://redis:6379/0
# Local dev (no compose): REDIS_CONNECTION_STRING=redis://localhost:6379/0
REDIS_CONNECTION_STRING=redis://localhost:6379/0
# Connection pool (Python worker)
REDIS_POOL_SIZE=10
REDIS_POOL_TIMEOUT=30
REDIS_MAX_RETRIES=5
REDIS_RETRY_DELAY=5
REDIS_CONNECT_TIMEOUT=10
REDIS_READ_TIMEOUT=10
REDIS_WRITE_TIMEOUT=10
# ─── Security ─────────────────────────────────────────────────────────────────
# AES-256 key — must be exactly 32 characters
ENCRYPTION_KEY=LKyGslR3InLES/EYQiJZcW06KFNMoevUd6kehjtrxPA=
# ─── Storage ──────────────────────────────────────────────────────────────────
# Set BUCKET_PROVIDER to "gcs" or "s3"
BUCKET_PROVIDER=gcs
# Bucket name — required for both providers
BUCKET_NAME=my-media-bucket
# GCS (when BUCKET_PROVIDER=gcs)
# Path to the GCS service-account JSON key file. The Go API reads GCS_SA_PATH;
# the Python worker reads BUCKET_SA_PATH — keep both pointing at the same file.
GCS_SA_PATH=.secrets/service-account.json
BUCKET_SA_PATH=.secrets/service-account.json
# S3 / S3-compatible (when BUCKET_PROVIDER=s3) — not yet implemented (sub-project 4)
# BUCKET_REGION=us-east-1
# BUCKET_ACCESS_KEY=
# BUCKET_SECRET_KEY=
# BUCKET_ENDPOINT_URL= # optional — for MinIO or S3-compatible endpoints
# ─── OpenTelemetry ────────────────────────────────────────────────────────────
OTEL_EXPORTER_OTLP_ENDPOINT=otel-collector:4317
# Defaults to plaintext gRPC (true) when unset — matches the bundled collector.
# Set to "false" only if your collector endpoint terminates real TLS.
OTEL_TLS_INSECURE=true
DEPLOYMENT_ENV=development
TRACE_SAMPLING_RATE=0.1
SERVICE_NAME=mpiper-api
SERVICE_VERSION=dev
# ─── CORS ─────────────────────────────────────────────────────────────────────
# Comma-separated list of allowed origins (defaults to http://localhost:5173)
CORS_ALLOWED_ORIGINS=http://localhost:5173,http://localhost:3000
# ─── Logging ──────────────────────────────────────────────────────────────────
# DEBUG | INFO | WARN | ERROR | FATAL
LOG_LEVEL=INFO
# ─── Migrations ───────────────────────────────────────────────────────────────
# Set to "true" to run DB migrations on startup
AUTO_MIGRATE=false
# Python worker: override default migrations directory
# MIGRATIONS_DIR=/path/to/migrations
# ─── Worker ───────────────────────────────────────────────────────────────────
WORKER_ID=
MAX_CONCURRENT_JOBS=5
JOB_POLL_INTERVAL=10
STREAM_NAME=media:jobs
CONSUMER_GROUP=worker-group