ansible/roles/openshift-apps/fmn/templates/sender-email.toml
Aurélien Bompard 90c81fda70
FMN: log the time of messages
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2023-04-26 09:28:26 +02:00

50 lines
1.4 KiB
TOML

# Configuration for the email sender.
# This is not a Fedora Messaging configuration (even if it looks similar)
# because senders don't use Fedora Messaging, they only connect to FMN's own
# VHost on RabbitMQ.
amqp_url = "amqps://fmn{{ env_suffix }}:@rabbitmq{{ env_suffix }}.fedoraproject.org/%2Ffmn"
queue = "email"
[tls]
ca_cert = "/etc/pki/fedora-messaging/ca/cacert.pem"
certfile = "/etc/pki/fedora-messaging/crt/fmn-cert.pem"
keyfile = "/etc/pki/fedora-messaging/key/fmn-key.pem"
[handler]
class = "fmn.sender.email:EmailHandler"
from = "Fedora Notifications <notifications{{ env_suffix }}@fedoraproject.org>"
{% if env == "staging" %}
smtp_host = "sendria.fmn.svc.cluster.local"
smtp_port = 1025
{% else %}
smtp_host = "bastion{{ env_suffix }}.fedoraproject.org"
{% endif %}
[log_config]
version = 1
disable_existing_loggers = true
[log_config.formatters.simple]
format = "[%(asctime)s] [%(levelname)s %(name)s] %(message)s"
[log_config.handlers.console]
class = "logging.StreamHandler"
formatter = "simple"
stream = "ext://sys.stdout"
[log_config.loggers.fmn]
level = "DEBUG"
propagate = false
handlers = ["console"]
# AIO-Pika is the underlying AMQP client library. When debugging you may want to
# lower this log level.
[log_config.loggers.aio_pika]
level = "WARNING"
propagate = false
handlers = ["console"]
[log_config.root]
level = "ERROR"
handlers = ["console"]