Skip to main content

Configuration

HAlive may be configured using command-line arguments, a .env file followed by environment variables in that priority order.

ArgumentEnv VarDescriptionDefault
--postgres-urlHALIVE_POSTGRES_URLPostgreSQL connection string to the HAF database
--http-hostHALIVE_HTTP_HOSTHTTP host for Express API127.0.0.1
--http-portHALIVE_HTTP_PORTHTTP port for Express API3010
--ipfs-gatewayHALIVE_IPFS_GATEWAYIPFS gateway for fetching chunk contentshttps://ipfs.io
--alivedb-urlHALIVE_ALIVEDB_URLAliveDB API URLhttp://localhost:3006
--chunk-fetch-timeoutHALIVE_CHUNK_FETCH_TIMEOUTTimeout for fetching chunk contents over IPFS gateway20
--log-levelHALIVE_LOG_LEVELLog level (warn/info/debug/trace)info