Environment variables
The following variables are required by colibri.InitializeApp():
| Variable | Values |
|---|---|
ENVIRONMENT | development, test, sandbox, production |
APP_NAME | Non-empty string |
APP_TYPE | service, serverless, cli |
CLOUD | none, aws, gcp, firebase |
Common optional variables include PORT (8080), LOG_LEVEL (info), and WAIT_GROUP_TIMEOUT_SECONDS (90).
Module configuration:
- OpenTelemetry:
OTEL_EXPORTER_OTLP_ENDPOINT,OTEL_EXPORTER_OTLP_HEADERS,OTEL_EXPORTER_OTLP_METRICS_ENDPOINT,OTEL_SERVICE_NAME; - PostgreSQL:
SQL_DB_HOST,SQL_DB_PORT,SQL_DB_NAME,SQL_DB_USER,SQL_DB_PASSWORD,SQL_DB_SSL_MODE, pool and migration variables; - Redis:
CACHE_URI,CACHE_PASSWORD; - messaging:
COLIBRI_MESSAGING,RABBITMQ_URL; - cloud:
CLOUD_HOST,CLOUD_REGION,CLOUD_SECRET,CLOUD_TOKEN,CLOUD_DISABLE_SSL,CLOUD_AWS_ROLE_ARN; - CORS:
CORS_ALLOW_ORIGINS,CORS_ALLOW_METHODS,CORS_ALLOW_HEADERS,CORS_EXPOSE_HEADERS,CORS_ALLOW_CREDENTIALS,CORS_MAX_AGE.
Do not commit real credentials to .env.