visuddhinanda 2 months ago
parent
commit
bb6a3ee5b3
1 changed files with 8 additions and 0 deletions
  1. 8 0
      api-v12/config/queue.php

+ 8 - 0
api-v12/config/queue.php

@@ -72,6 +72,14 @@ return [
             'after_commit' => false,
         ],
 
+        'rabbitmq' => [
+            'host' => env('RABBITMQ_HOST', '127.0.0.1'),
+            'port' => env('RABBITMQ_PORT', 5672),
+            'user' => env('RABBITMQ_USER', 'guest'),
+            'password' => env('RABBITMQ_PASSWORD', 'guest'),
+            'virtual_host' => env('RABBITMQ_VIRTUAL_HOST', '/'),
+            'heartbeat' => env('RABBITMQ_HEARTBEAT', 60), // 心跳时间(秒)
+        ],
     ],
 
     /*