Skip to main content

Configuration

A configuration file is used to configure UniCore. It is expected to be present in agent_application/config.yaml. An example can be found in example-config.yaml. Values can also be set through the environment, preferably used to inject sensitive values or environment-specific values.

info

Environment variables override values specified in the configuration file.

note

All environment variables need to be prefixed with UNICORE__ to prevent conflicts with other unrelated variables.

General

NameDescriptionDefault valueAccepted values
UNICORE__LOG_FORMATThe format of the log output.jsonjson, text
UNICORE__EVENT_STORE__TYPEThe type of event store to use.-in_memory, postgres
UNICORE__EVENT_STORE__CONNECTION_STRINGThe connection string for the event store database.-postgresql://<user>:<pass>@<host>/<db>
UNICORE__URLThe base URL UniCore runs on.-https://my-domain.example.org
UNICORE__BASE_PATHA base path can be set if needed.-string
UNICORE__CORS_ENABLEDEnable CORS (permissive). Only required for browser-based access.falseboolean
UNICORE__DID_METHODS__DID_WEB__ENABLEDCreate and host a did:web DID document.falseboolean
UNICORE__SIGNING_ALGORITHMS_SUPPORTED__EDDSA__ENABLEDToggles the algorithm allowed for cryptographic operations.trueboolean
UNICORE__DOMAIN_LINKAGE_ENABLEDEnable domain linkage (only works with did:web).-boolean
UNICORE__EXTERNAL_SERVER_RESPONSE_TIMEOUT_MSThe timeout for external server responses (in milliseconds).1000integer

Secret Management

NameDescriptionDefault valueAccepted values
UNICORE__SECRET_MANAGER__STRONGHOLD_PATHThe path to the stronghold file.-/var/lib/unicore/stronghold
UNICORE__SECRET_MANAGER__STRONGHOLD_PASSWORDThe password to unlock the stronghold.--
UNICORE__SECRET_MANAGER__ISSUER_EDDSA_KEY_IDThe key ID of the EDDSA (Ed25519) key to be used.--
UNICORE__SECRET_MANAGER__ISSUER_ES256_KEY_IDThe key ID of the ES256 key to be used.--

Look and Feel

info

Setting display values is currently not supported through environment variables. Please refer to config.yaml.