Deployment configuration

This commit is contained in:
florian authored and Florian committed 2025-10-06 16:17:13 +02:00
1 parent f67fd99333
commit aab311dc86
13 files changed
+206 -91

No files matched your search

+8 -11
View File
@@ -1,15 +1,12 @@
rabbitmqctl add_vhost app_notifications
rabbitmqctl add_user notifier strongpassword
rabbitmqctl set_user_tags notifier management
rabbitmqctl set_permissions -p app_notifications notifier ".*" ".*" ".*"
rabbitmqadmin --username "admin" --password "admin" declare exchange --vhost "app_notifications" --name "app_notifications" --type "topic" --durable "true"
rabbitmqadmin --username "admin" --password "admin" declare queue --vhost "app_notifications" --name "notifications_retry"
--durable "true"
rabbitmqadmin --username "admin" --password "admin" declare queue --vhost "app_notifications" --name "notifications_dlq"
--durable "true"
rabbitmqadmin --username "admin" --password "admin" declare queue --vhost "app_notifications" --name "notifications"
--durable "true"
rabbitmqadmin --username "admin" --password "admin" declare binding --vhost "app_notifications" --source "app_notifications" --destination "notifications" --destination-type "queue" --routing-key "notify.*"
rabbitmqctl add_user backend-api-internal strongpassword
rabbitmqctl set_user_tags backend-api-internal management
rabbitmqctl set_permissions -p app_notifications backend-api-internal ".*" ".*" ".*"
rabbitmqadmin declare exchange --vhost "app_notifications" --name "app_notifications" --type "topic" --durable "true"
rabbitmqadmin declare queue --vhost "app_notifications" --name "notifications_retry" --durable "true"
rabbitmqadmin declare queue --vhost "app_notifications" --name "notifications_dlq" --durable "true"
rabbitmqadmin declare queue --vhost "app_notifications" --name "notifications" --durable "true"
rabbitmqadmin declare binding --vhost "app_notifications" --source "app_notifications" --destination "notifications" --destination-type "queue" --routing-key "notify.#"
# Retry policy: messages stay for 30s before going back to main queue
rabbitmqctl set_policy \