Zum Hauptinhalt springen

Environment Variables

Environment variables for the nats service

NameIntroduction VersionTypeDescriptionDefault Value
OC_TRACING_ENABLED
NATS_TRACING_ENABLED
1.0.0boolActivates tracing.false
OC_TRACING_TYPE
NATS_TRACING_TYPE
1.0.0stringThe type of tracing. Defaults to '', which is the same as 'jaeger'. Allowed tracing types are 'jaeger' and '' as of now.
OC_TRACING_ENDPOINT
NATS_TRACING_ENDPOINT
1.0.0stringThe endpoint of the tracing agent.
OC_TRACING_COLLECTOR
NATS_TRACING_COLLECTOR
1.0.0stringThe HTTP endpoint for sending spans directly to a collector, i.e. \http://jaeger-collector:14268/api/traces. Only used if the tracing endpoint is unset.
OC_LOG_LEVEL
NATS_LOG_LEVEL
1.0.0stringThe log level. Valid values are: 'panic', 'fatal', 'error', 'warn', 'info', 'debug', 'trace'.
OC_LOG_PRETTY
NATS_LOG_PRETTY
1.0.0boolActivates pretty log output.false
OC_LOG_COLOR
NATS_LOG_COLOR
1.0.0boolActivates colorized log output.false
OC_LOG_FILE
NATS_LOG_FILE
1.0.0stringThe path to the log file. Activates logging to this file if set.
NATS_DEBUG_ADDR1.0.0stringBind address of the debug server, where metrics, health, config and debug endpoints will be exposed.127.0.0.1:9234
NATS_DEBUG_TOKEN1.0.0stringToken to secure the metrics endpoint.
NATS_DEBUG_PPROF1.0.0boolEnables pprof, which can be used for profiling.false
NATS_DEBUG_ZPAGES1.0.0boolEnables zpages, which can be used for collecting and viewing in-memory traces.false
NATS_NATS_HOST1.0.0stringBind address.127.0.0.1
NATS_NATS_PORT1.0.0intBind port.9233
NATS_NATS_CLUSTER_ID1.0.0stringID of the NATS cluster.opencloud-cluster
NATS_NATS_STORE_DIR1.0.0stringThe directory where the filesystem storage will store NATS JetStream data. If not defined, the root directory derives from $OC_BASE_DATA_PATH/nats./home/chaser/.opencloud/nats
NATS_TLS_CERT1.0.0stringPath/File name of the TLS server certificate (in PEM format) for the NATS listener. If not defined, the root directory derives from $OC_BASE_DATA_PATH/nats./home/chaser/.opencloud/nats/tls.crt
NATS_TLS_KEY1.0.0stringPath/File name for the TLS certificate key (in PEM format) for the NATS listener. If not defined, the root directory derives from $OC_BASE_DATA_PATH/nats./home/chaser/.opencloud/nats/tls.key
OC_INSECURE
NATS_TLS_SKIP_VERIFY_CLIENT_CERT
1.0.0boolWhether the NATS server should skip the client certificate verification during the TLS handshake.false
OC_EVENTS_ENABLE_TLS
NATS_EVENTS_ENABLE_TLS
1.0.0boolEnable TLS for the connection to the events broker. The events broker is the OpenCloud service which receives and delivers events between the services.false