مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-11-30 21:32:30 +00:00
feat: support for AMQPS for rabbitmq connections (#1911)
* Support AMQPS * Update rabbit_mq.rb
هذا الالتزام موجود في:
@@ -50,6 +50,10 @@ message_db:
|
||||
rabbitmq:
|
||||
host: 127.0.0.1
|
||||
port: 5672
|
||||
tls: false
|
||||
verify_peer: true
|
||||
tls_ca_certificates:
|
||||
- /etc/ssl/certs/ca-certificates.crt
|
||||
username: postal
|
||||
password:
|
||||
vhost: /postal
|
||||
|
||||
@@ -16,6 +16,9 @@ module Postal
|
||||
conn = Bunny.new(
|
||||
:hosts => bunny_host,
|
||||
:port => Postal.config.rabbitmq&.port || 5672,
|
||||
:tls => Postal.config.rabbitmq&.tls || false,
|
||||
:verify_peer => Postal.config.rabbitmq&.verify_peer || true,
|
||||
:tls_ca_certificates => Postal.config.rabbitmq&.tls_ca_certificates || [ "/etc/ssl/certs/ca-certificates.crt" ],
|
||||
:username => Postal.config.rabbitmq&.username || 'guest',
|
||||
:password => Postal.config.rabbitmq&.password || 'guest',
|
||||
:vhost => Postal.config.rabbitmq&.vhost || nil
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم