Environment Variables

View as Markdown

Consumed by the Go API server

VariableRequiredDefaultDescription
DB_HOSTyespostgresPostgres host
DB_PORTyes5432Postgres port
DB_USERyesidaPostgres user
DB_PASSyesPostgres password (use a Secret in K8s)
DB_NAMEyesidaPostgres database name
REDIS_URLyesredis://redis:6379/0Redis URL
BLOCKCHAIN_RPCyeshttp://hardhat:8545ADI RPC endpoint
DID_REGISTRY_ADDRESSyesDIDRegistry contract address
API_KEYnoServer-to-server API key
LOG_LEVELnoinfoZap log level

Informational / forward-compatibility

VariableUsed byDescription
BLOCKCHAIN_CHAIN_IDPortal / SDKNetwork identifier (8400 / 99999 / 31337)
SCHEMA_REGISTRY_ADDRESSPortal / SDKReserved — not yet read by the API Config struct in v2.0
REVOCATION_REGISTRY_ADDRESSPortal / SDKReserved — see above
AGENT_TRUST_REGISTRY_ADDRESSPortal / SDKReserved — see above
ZK_PROOF_VERIFIER_ADDRESSPortal / SDKReserved for ZKProofVerifier integration; not consumed by Config in v2.0