Zum Hauptinhalt springen

Environment Variables

Environment variables for the notifications service

NameIntroduction VersionTypeDescriptionDefault Value
OC_TRACING_ENABLED
NOTIFICATIONS_TRACING_ENABLED
1.0.0boolActivates tracing.false
OC_TRACING_TYPE
NOTIFICATIONS_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
NOTIFICATIONS_TRACING_ENDPOINT
1.0.0stringThe endpoint of the tracing agent.
OC_TRACING_COLLECTOR
NOTIFICATIONS_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
NOTIFICATIONS_LOG_LEVEL
1.0.0stringThe log level. Valid values are: 'panic', 'fatal', 'error', 'warn', 'info', 'debug', 'trace'.
OC_LOG_PRETTY
NOTIFICATIONS_LOG_PRETTY
1.0.0boolActivates pretty log output.false
OC_LOG_COLOR
NOTIFICATIONS_LOG_COLOR
1.0.0boolActivates colorized log output.false
OC_LOG_FILE
NOTIFICATIONS_LOG_FILE
1.0.0stringThe path to the log file. Activates logging to this file if set.
NOTIFICATIONS_DEBUG_ADDR1.0.0stringBind address of the debug server, where metrics, health, config and debug endpoints will be exposed.127.0.0.1:9174
NOTIFICATIONS_DEBUG_TOKEN1.0.0stringToken to secure the metrics endpoint.
NOTIFICATIONS_DEBUG_PPROF1.0.0boolEnables pprof, which can be used for profiling.false
NOTIFICATIONS_DEBUG_ZPAGES1.0.0boolEnables zpages, which can be used for collecting and viewing in-memory traces.false
OC_URL
NOTIFICATIONS_WEB_UI_URL
1.0.0stringThe public facing URL of the OpenCloud Web UI, used e.g. when sending notification eMailshttps://localhost:9200
NOTIFICATIONS_SMTP_HOST1.0.0stringSMTP host to connect to.
NOTIFICATIONS_SMTP_PORT1.0.0intPort of the SMTP host to connect to.0
NOTIFICATIONS_SMTP_SENDER1.0.0stringSender address of emails that will be sent (e.g. 'OpenCloud <noreply@example.com>').
NOTIFICATIONS_SMTP_USERNAME1.0.0stringUsername for the SMTP host to connect to.
NOTIFICATIONS_SMTP_PASSWORD1.0.0stringPassword for the SMTP host to connect to.
NOTIFICATIONS_SMTP_INSECURE1.0.0boolAllow insecure connections to the SMTP server.false
NOTIFICATIONS_SMTP_AUTHENTICATION1.0.0stringAuthentication method for the SMTP communication. Possible values are 'login', 'plain', 'crammd5', 'none' or 'auto'. If set to 'auto' or unset, the authentication method is automatically negotiated with the server.
NOTIFICATIONS_SMTP_ENCRYPTION1.0.0stringEncryption method for the SMTP communication. Possible values are 'starttls', 'ssltls' and 'none'.none
OC_EVENTS_ENDPOINT
NOTIFICATIONS_EVENTS_ENDPOINT
1.0.0stringThe address of the event system. The event system is the message queuing service. It is used as message broker for the microservice architecture.127.0.0.1:9233
OC_EVENTS_CLUSTER
NOTIFICATIONS_EVENTS_CLUSTER
1.0.0stringThe clusterID of the event system. The event system is the message queuing service. It is used as message broker for the microservice architecture. Mandatory when using NATS as event system.opencloud-cluster
OC_INSECURE
NOTIFICATIONS_EVENTS_TLS_INSECURE
1.0.0boolWhether to verify the server TLS certificates.false
OC_EVENTS_TLS_ROOT_CA_CERTIFICATE
NOTIFICATIONS_EVENTS_TLS_ROOT_CA_CERTIFICATE
1.0.0stringThe root CA certificate used to validate the server's TLS certificate. If provided NOTIFICATIONS_EVENTS_TLS_INSECURE will be seen as false.
OC_EVENTS_ENABLE_TLS
NOTIFICATIONS_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
OC_EVENTS_AUTH_USERNAME
NOTIFICATIONS_EVENTS_AUTH_USERNAME
1.0.0stringThe username to authenticate with the events broker. The events broker is the OpenCloud service which receives and delivers events between the services.
OC_EVENTS_AUTH_PASSWORD
NOTIFICATIONS_EVENTS_AUTH_PASSWORD
1.0.0stringThe password to authenticate with the events broker. The events broker is the OpenCloud service which receives and delivers events between the services.
OC_EMAIL_TEMPLATE_PATH
NOTIFICATIONS_EMAIL_TEMPLATE_PATH
1.0.0stringPath to Email notification templates overriding embedded ones.
OC_TRANSLATION_PATH
NOTIFICATIONS_TRANSLATION_PATH
1.0.0string(optional) Set this to a path with custom translations to overwrite the builtin translations. Note that file and folder naming rules apply, see the documentation for more details.
OC_DEFAULT_LANGUAGE1.0.0stringThe default language used by services and the WebUI. If not defined, English will be used as default. See the documentation for more details.
OC_REVA_GATEWAY1.0.0stringCS3 gateway used to look up user metadataeu.opencloud.api.gateway
OC_GRPC_CLIENT_TLS_MODE1.0.0stringTLS mode for grpc connection to the go-micro based grpc services. Possible values are 'off', 'insecure' and 'on'. 'off': disables transport security for the clients. 'insecure' allows using transport security, but disables certificate verification (to be used with the autogenerated self-signed certificates). 'on' enables transport security, including server certificate verification.
OC_GRPC_CLIENT_TLS_CACERT1.0.0stringPath/File name for the root CA certificate (in PEM format) used to validate TLS server certificates of the go-micro based grpc services.
OC_SERVICE_ACCOUNT_ID
NOTIFICATIONS_SERVICE_ACCOUNT_ID
1.0.0stringThe ID of the service account the service should use. See the 'auth-service' service description for more details.
OC_SERVICE_ACCOUNT_SECRET
NOTIFICATIONS_SERVICE_ACCOUNT_SECRET
1.0.0stringThe service account secret.
OC_PERSISTENT_STORE
NOTIFICATIONS_STORE
1.0.0stringThe type of the store. Supported values are: 'memory', 'nats-js-kv', 'redis-sentinel', 'noop'. See the text description for details.nats-js-kv
OC_PERSISTENT_STORE_NODES
NOTIFICATIONS_STORE_NODES
1.0.0[]stringA list of nodes to access the configured store. This has no effect when 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details.[127.0.0.1:9233]
NOTIFICATIONS_STORE_DATABASE1.0.0stringThe database name the configured store should use.notifications
NOTIFICATIONS_STORE_TABLE1.0.0stringThe database table the store should use.
OC_PERSISTENT_STORE_TTL
NOTIFICATIONS_STORE_TTL
1.0.0DurationTime to live for notifications in the store. Defaults to '336h' (2 weeks). See the Environment Variable Types description for more details.336h0m0s
OC_PERSISTENT_STORE_AUTH_USERNAME
NOTIFICATIONS_STORE_AUTH_USERNAME
1.0.0stringThe username to authenticate with the store. Only applies when store type 'nats-js-kv' is configured.
OC_PERSISTENT_STORE_AUTH_PASSWORD
NOTIFICATIONS_STORE_AUTH_PASSWORD
1.0.0stringThe password to authenticate with the store. Only applies when store type 'nats-js-kv' is configured.