The Notifications plugin is available as a docker image, and it has the following dependencies.
SECURITY_OAUTH2_BASE_SERVER_URL
SECURITY_OAUTH2_CLIENT_CLIENT_ID
SECURITY_OAUTH2_CLIENT_CLIENT_SECRET
SECURITY_OAUTH2_REALM
SPRING_DATA_MONGODB_URI
- the URI for the MongoDB databaseSPRING_REDIS_HOST
SPRING_REDIS_PASSWORD
REDIS_TTL
SPRING_KAFKA_BOOTSTRAP_SERVERS
- address of the Kafka serverSPRING_KAFKA_CONSUMER_GROUP_ID
- group of consumersKAFKA_CONSUMER_THREADS
- the number of Kafka consumer threadsKAFKA_AUTH_EXCEPTION_RETRY_INTERVAL
- the interval between retries after AuthorizationException
is thrown by KafkaConsumer
KAFKA_MESSAGE_MAX_BYTES
- this is the largest size of the message that can be received by the broker from a producerKAFKA_TOPIC_NOTIFICATION_EXTERNAL_OUT
- the notification will be forwarded on this topic to be handled by an external systemKAFKA_TOPIC_NOTIFICATION_INTERNAL_IN
- topic used to trigger the request to send a notificationKAFKA_TOPIC_NOTIFICATION_INTERNAL_OUT
- topic used for sending replies after sending the notificationKAFKA_TOPIC_OTP_GENERATE_IN
KAFKA_TOPIC_OTP_GENERATE_OUT
- after the OTP was generated and send to the user, this is the topic used to send the response back to the EngineKAFKA_TOPIC_OTP_VALIDATE_IN
- Event send on this topic with an OTP and an identifier will check if the OTP is validKAFKA_TOPIC_OTP_VALIDATE_OUT
- Response to the request to validate an OTP will be sent back to the Engine on this topic
APPLICATION_FILE_STORAGE_S3_SERVER_URL
APPLICATION_FILE_STORAGE_S3_ACCESS_KEY
APPLICATION_FILE_STORAGE_S3_SECRET_KEY
APPLICATION_FILE_STORAGE_S3_BUCKET_PREFIX
SIMPLEJAVAMAIL_SMTP_HOST
- used by mail servers to send, receive, and/or relay outgoing mail between email senders and receiversSIMPLEJAVAMAIL_SMTP_PORT
- refers to the specific part of the Internet address that’s used to transfer emailSIMPLEJAVAMAIL_SMTP_USERNAME
SIMPLEJAVAMAIL_SMTP_PASSWORD
SIMPLEJAVAEMAIL_TRANSPORTSTRATEGY
- sets the method on how the notifications are delivered, for example EXTERNAL_FORWARD
for forwarding to external adaptersAPPLICATION_MAIL_FROM_EMAIL
APPLICATION_MAIL_FROM_NAME
SPRING_HTTP_MULTIPART_MAX_FILE_SIZE
SPRING_HTTP_MULTIPART_MAX_REQUEST_SIZE
FLOWX_OTP_LENGTH
- the number of characters allowed for OTPFLOWX_OTP_EXPIRE_TIME_IN_SECONDS
- expiry time (seconds)LOGGING_LEVEL_ROOT
- root spring boot microservice logsLOGGING_LEVEL_APP
- app level logsLOGGING_LEVEL_MONGO_DRIVER
- MongoDB driver logsLOGGING_LEVEL_THYMELEAF
- Thymeleaf logs, logs related to using notifications templatesKAFKA_CONSUMER_ERROR_HANDLING_ENABLED
- default value: FALSE
→ allows control on Kafka consumer applications to handle errors and failures during message consumption - When this variable is set to true
, it enables the consumer application to handle any errors that occur during message consumptionKAFKA_CONSUMER_ERROR_HANDLING_RETRIES
- default value: 0
→ when KAFKA_CONSUMER_ERROR_HANDLING_ENABLED
is set to true
, this environment variable specifies the maximum number of retries that the consumer application should attempt before giving up on processing a message; for example, if KAFKA_CONSUMER_ERROR_HANDLING_RETRIES
is set to 5
, the consumer application will attempt to process a message up to 5 times before giving upKAFKA_CONSUMER_ERROR_HANDLING_RETRY_INTERVAL
- default value: 1000
→ when KAFKA_CONSUMER_ERROR_HANDLING_ENABLED
is set to true and retries are enabled with KAFKA_CONSUMER_ERROR_HANDLING_RETRIES
, this environment variable specifies the amount of time that the consumer application should wait before attempting to retry processing a message