FMN: Add a F-M config for the API
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
05c8f26f1d
commit
ee87244619
2 changed files with 60 additions and 0 deletions
58
roles/openshift-apps/fmn/templates/api.toml
Normal file
58
roles/openshift-apps/fmn/templates/api.toml
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
amqp_url = "amqps://fmn{{ env_suffix }}:@rabbitmq{{ env_suffix }}.fedoraproject.org/%2Fpubsub"
|
||||||
|
passive_declares = true
|
||||||
|
|
||||||
|
[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"
|
||||||
|
|
||||||
|
|
||||||
|
[client_properties]
|
||||||
|
app = "FMN api"
|
||||||
|
|
||||||
|
# If the exchange or queue name has a "." in it, use quotes as seen here.
|
||||||
|
[exchanges."amq.topic"]
|
||||||
|
type = "topic"
|
||||||
|
durable = true
|
||||||
|
auto_delete = false
|
||||||
|
arguments = {}
|
||||||
|
|
||||||
|
|
||||||
|
[qos]
|
||||||
|
prefetch_size = 0
|
||||||
|
prefetch_count = 25
|
||||||
|
|
||||||
|
[log_config]
|
||||||
|
version = 1
|
||||||
|
disable_existing_loggers = true
|
||||||
|
|
||||||
|
[log_config.formatters.simple]
|
||||||
|
format = "[%(levelname)s %(name)s] %(message)s"
|
||||||
|
|
||||||
|
[log_config.handlers.console]
|
||||||
|
class = "logging.StreamHandler"
|
||||||
|
formatter = "simple"
|
||||||
|
stream = "ext://sys.stdout"
|
||||||
|
|
||||||
|
[log_config.loggers.fedora_messaging]
|
||||||
|
level = "INFO"
|
||||||
|
propagate = false
|
||||||
|
handlers = ["console"]
|
||||||
|
|
||||||
|
# Twisted is the asynchronous framework that manages the TCP/TLS connection, as well
|
||||||
|
# as the consumer event loop. When debugging you may want to lower this log level.
|
||||||
|
[log_config.loggers.twisted]
|
||||||
|
level = "INFO"
|
||||||
|
propagate = false
|
||||||
|
handlers = ["console"]
|
||||||
|
|
||||||
|
# Pika is the underlying AMQP client library. When debugging you may want to
|
||||||
|
# lower this log level.
|
||||||
|
[log_config.loggers.pika]
|
||||||
|
level = "WARNING"
|
||||||
|
propagate = false
|
||||||
|
handlers = ["console"]
|
||||||
|
|
||||||
|
[log_config.root]
|
||||||
|
level = "ERROR"
|
||||||
|
handlers = ["console"]
|
|
@ -132,6 +132,8 @@ spec:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: fmn
|
name: fmn
|
||||||
key: redis-password
|
key: redis-password
|
||||||
|
- name: FEDORA_MESSAGING_CONF
|
||||||
|
value: /etc/fmn/api.toml
|
||||||
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue