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