Configuration Reference¶
PROTEA loads its configuration from two sources, merged in this order (later entries win):
protea/config/system.yaml— file-based defaultsEnvironment variables — runtime overrides
YAML structure¶
database:
url: postgresql+psycopg://user:pass@host:5432/dbname
queue:
amqp_url: amqp://guest:guest@localhost:5672/
Both keys are required. The file is loaded by
protea.infrastructure.settings.load_settings(project_root) at startup.
Environment variable overrides¶
Variable |
Description |
|---|---|
|
Overrides |
|
Overrides |
Frontend¶
# apps/web/.env.local
NEXT_PUBLIC_API_URL=http://127.0.0.1:8000
This is the only configuration the Next.js frontend needs. It is injected at build time by Next.js and embedded in the client bundle.
Integration test environment variables¶
The Docker-based integration test fixture is controlled by:
Variable |
Default |
Description |
|---|---|---|
|
|
Docker image for the ephemeral Postgres container. |
|
|
Database user. |
|
|
Database password. |
|
|
Database name. |
|
|
Host port mapped to container port 5432. |
|
|
Seconds to wait for Postgres readiness. |
RabbitMQ management¶
The RabbitMQ management UI is available at http://localhost:15672 (default
credentials guest / guest). The two PROTEA queues are:
Queue |
Durability |
Operations |
|---|---|---|
|
durable |
|
|
durable |
|
Queues are declared at worker startup and survive broker restarts.