Skip to main content
Version: v2.0

Configuration variables

info

As an example, DEBUG could either be passed as ledger serve --debug or DEBUG=true ledger serve.

FlagEnv varDefault valueDescription
--auth-check-scopesAUTH_CHECK_SCOPESfalseCheckScopes
--auth-enabledAUTH_ENABLEDfalseEnable auth
--auth-issuerAUTH_ISSUERIssuer
--auth-read-key-set-max-retriesAUTH_READ_KEY_SET_MAX_RETRIES10ReadKeySetMaxRetries
--auth-serviceAUTH_SERVICEService
--aws-access-key-idAWS_ACCESS_KEY_IDAWS access key id
--aws-profileAWS_PROFILEAWS profile
--aws-regionAWS_REGIONSpecify AWS region
--aws-role-arnAWS_ROLE_ARNAWS Role ARN
--aws-secret-access-keyAWS_SECRET_ACCESS_KEYAWS secret access key
--aws-session-tokenAWS_SESSION_TOKENAWS session token
--bindBIND0.0.0.0:3068API bind address
--debugDEBUGfalseDebug mode
--json-formatting-loggerJSON_FORMATTING_LOGGERfalseFormat logs as json
--otel-metricsOTEL_METRICSfalseEnable OpenTelemetry traces support
--otel-metrics-exporterOTEL_METRICS_EXPORTERstdoutOpenTelemetry metrics exporter
--otel-metrics-exporter-otlp-endpointOTEL_METRICS_EXPORTER_OTLP_ENDPOINTOpenTelemetry traces grpc endpoint
--otel-metrics-exporter-otlp-insecureOTEL_METRICS_EXPORTER_OTLP_INSECUREfalseOpenTelemetry traces grpc insecure
--otel-metrics-exporter-otlp-modeOTEL_METRICS_EXPORTER_OTLP_MODEgrpcOpenTelemetry traces OTLP exporter mode (grpc
--otel-metrics-exporter-push-intervalOTEL_METRICS_EXPORTER_PUSH_INTERVAL10sOpenTelemetry metrics exporter push interval
--otel-metrics-runtimeOTEL_METRICS_RUNTIMEfalseEnable OpenTelemetry runtime metrics
--otel-metrics-runtime-minimum-read-mem-stats-intervalOTEL_METRICS_RUNTIME_MINIMUM_READ_MEM_STATS_INTERVAL15sOpenTelemetry runtime metrics minimum read mem stats interval
--otel-resource-attributesOTEL_RESOURCE_ATTRIBUTES[]Additional OTLP resource attributes
--otel-service-nameOTEL_SERVICE_NAMEOpenTelemetry service name
--otel-tracesOTEL_TRACESfalseEnable OpenTelemetry traces support
--otel-traces-batchOTEL_TRACES_BATCHfalseUse OpenTelemetry batching
--otel-traces-exporterOTEL_TRACES_EXPORTERstdoutOpenTelemetry traces exporter
--otel-traces-exporter-jaeger-endpointOTEL_TRACES_EXPORTER_JAEGER_ENDPOINTOpenTelemetry traces Jaeger exporter endpoint
--otel-traces-exporter-jaeger-passwordOTEL_TRACES_EXPORTER_JAEGER_PASSWORDOpenTelemetry traces Jaeger exporter password
--otel-traces-exporter-jaeger-userOTEL_TRACES_EXPORTER_JAEGER_USEROpenTelemetry traces Jaeger exporter user
--otel-traces-exporter-otlp-endpointOTEL_TRACES_EXPORTER_OTLP_ENDPOINTOpenTelemetry traces grpc endpoint
--otel-traces-exporter-otlp-insecureOTEL_TRACES_EXPORTER_OTLP_INSECUREfalseOpenTelemetry traces grpc insecure
--otel-traces-exporter-otlp-modeOTEL_TRACES_EXPORTER_OTLP_MODEgrpcOpenTelemetry traces OTLP exporter mode (grpc
--postgres-aws-enable-iamPOSTGRES_AWS_ENABLE_IAMfalseEnable AWS IAM authentication
--postgres-conn-max-idle-timePOSTGRES_CONN_MAX_IDLE_TIME1m0sMax Idle time for connections
--postgres-max-idle-connsPOSTGRES_MAX_IDLE_CONNS0Max Idle connections
--postgres-max-open-connsPOSTGRES_MAX_OPEN_CONNS20Max opened connections
--postgres-uriPOSTGRES_URIPostgres URI
--publisher-circuit-breaker-enabledPUBLISHER_CIRCUIT_BREAKER_ENABLEDfalseEnable circuit breaker for publisher
--publisher-circuit-breaker-list-storage-limitPUBLISHER_CIRCUIT_BREAKER_LIST_STORAGE_LIMIT100Circuit breaker list storage limit
--publisher-circuit-breaker-open-interval-durationPUBLISHER_CIRCUIT_BREAKER_OPEN_INTERVAL_DURATION5sCircuit breaker open interval duration
--publisher-circuit-breaker-schemaPUBLISHER_CIRCUIT_BREAKER_SCHEMA_systemCircuit breaker schema
--publisher-http-enabledPUBLISHER_HTTP_ENABLEDfalseSent write event to http endpoint
--publisher-kafka-brokerPUBLISHER_KAFKA_BROKER[localhost:9092]Kafka address is kafka enabled
--publisher-kafka-enabledPUBLISHER_KAFKA_ENABLEDfalsePublish write events to kafka
--publisher-kafka-sasl-enabledPUBLISHER_KAFKA_SASL_ENABLEDfalseEnable SASL authentication on kafka publisher
--publisher-kafka-sasl-iam-enabledPUBLISHER_KAFKA_SASL_IAM_ENABLEDfalseEnable IAM authentication on kafka publisher
--publisher-kafka-sasl-mechanismPUBLISHER_KAFKA_SASL_MECHANISMSASL authentication mechanism
--publisher-kafka-sasl-passwordPUBLISHER_KAFKA_SASL_PASSWORDSASL password
--publisher-kafka-sasl-scram-sha-sizePUBLISHER_KAFKA_SASL_SCRAM_SHA_SIZE512SASL SCRAM SHA size
--publisher-kafka-sasl-session-namePUBLISHER_KAFKA_SASL_SESSION_NAMEIAM session name
--publisher-kafka-sasl-usernamePUBLISHER_KAFKA_SASL_USERNAMESASL username
--publisher-kafka-tls-enabledPUBLISHER_KAFKA_TLS_ENABLEDfalseEnable TLS to connect on kafka
--publisher-nats-auto-provisionPUBLISHER_NATS_AUTO_PROVISIONtrueAuto create streams
--publisher-nats-client-idPUBLISHER_NATS_CLIENT_IDNats client ID
--publisher-nats-enabledPUBLISHER_NATS_ENABLEDfalsePublish write events to nats
--publisher-nats-max-reconnectPUBLISHER_NATS_MAX_RECONNECT-1Nats: set the maximum number of reconnect attempts.
--publisher-nats-reconnect-waitPUBLISHER_NATS_RECONNECT_WAIT2sNats: the wait time between reconnect attempts.
--publisher-nats-urlPUBLISHER_NATS_URLNats url
--publisher-topic-mappingPUBLISHER_TOPIC_MAPPING[]Define mapping between internal event types and topics