Advertisement
Guest User

Untitled

a guest
May 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.73 KB | None | 0 0
  1.         'rabbitmq' => [
  2.             'class' => \mikemadisonweb\rabbitmq\Configuration::class,
  3.             'connections' => [
  4.                 [
  5.                     'host' => '35.198.191.27',
  6.                     'port' => '5672',
  7.                     'user' => 'prosperodesu',
  8.                     'password' => 's45fdfx65',
  9.                     'vhost' => '/',
  10.                 ]
  11.             ],
  12.             'exchanges' => [
  13.                 [
  14.                     'name' => 'converter',
  15.                     'type' => 'fanout'
  16.                     // Refer to Defaults section for all possible options
  17.                 ],
  18.                 [
  19.                     'name' => 'finished_convert',
  20.                     'type' => 'fanout'
  21.                     // Refer to Defaults section for all possible options
  22.                 ],
  23.                 [
  24.                     'name' => 'open_pose',
  25.                     'type' => 'fanout'
  26.                     // Refer to Defaults section for all possible options
  27.                 ],
  28.                 [
  29.                     'name' => 'screenshots',
  30.                     'type' => 'fanout'
  31.                     // Refer to Defaults section for all possible options
  32.                 ],
  33.             ],
  34.             'queues' => [
  35.                 [
  36.                     'name' => 'maked_screenshots',
  37.                     // Queue can be configured here the way you want it:
  38.                     'durable' => true,
  39.                 ],
  40.                 [
  41.                     'name' => 'screenshots',
  42.                     // Queue can be configured here the way you want it:
  43.                     'durable' => true,
  44.                 ],
  45.                 [
  46.                     'name' => 'convert',
  47.                     // Queue can be configured here the way you want it:
  48.                     'durable' => true,
  49.                 ],
  50.                 [
  51.                     'name' => 'converter',
  52.                     // Queue can be configured here the way you want it:
  53.                     'durable' => true,
  54.                 ],
  55.                 [
  56.                     'name' => 'finished_convert',
  57.                     // Queue can be configured here the way you want it:
  58.                     'durable' => true,
  59.                 ],
  60.                 [
  61.                     'name' => 'open_pose',
  62.                     // Queue can be configured here the way you want it:
  63.                     'durable' => true,
  64.                 ],
  65.             ],
  66.             'consumers' => [
  67.                 [
  68.                     'name' => 'FinishedConvertConsumer',
  69.                     // Every consumer should define one or more callbacks for corresponding queues
  70.                     'callbacks' => [
  71.                         // queue name => callback class name
  72.                         'finished_convert' => \common\components\queue\FinishedConvertConsumer::class,
  73.                     ],
  74.                 ],
  75.             ],
  76.             'bindings' => [
  77.                 [
  78.                     'queue' => 'convert',
  79.                     'exchange' => 'converter',
  80.                     'routing_keys' => ['/convert'],
  81.                 ],
  82.                 [
  83.                     'queue' => 'finished_convert',
  84.                     'exchange' => 'finished_convert',
  85.                     'routing_keys' => ['/convert_finished'],
  86.                 ],
  87.                 [
  88.                     'queue' => 'open_pose',
  89.                     'exchange' => 'open_pose',
  90.                     'routing_keys' => ['/to_open_pose'],
  91.                 ],
  92.                 [
  93.                     'queue' => 'maked_screenshots',
  94.                     'exchange' => 'screenshots',
  95.                     'routing_keys' => ['/screenshots'],
  96.                 ],
  97.             ],
  98.             'producers' => [
  99.                 [
  100.                     'name' => 'ConvertProducer',
  101.                 ],
  102.             ],
  103.             /*'bindings' => [
  104.                     [
  105.                         'queue' => 'YOUR_QUEUE_NAME',
  106.                         'exchange' => 'YOUR_EXCHANGE_NAME',
  107.                         'routing_keys' => ['YOUR_ROUTING_KEY'],
  108.                     ],
  109.                 ],
  110.                 'producers' => [
  111.                     [
  112.                         'name' => 'YOUR_PRODUCER_NAME',
  113.                     ],
  114.                 ],
  115.                 'consumers' => [
  116.                     [
  117.                         'name' => 'YOUR_CONSUMER_NAME',
  118.                         // Every consumer should define one or more callbacks for corresponding queues
  119.                         'callbacks' => [
  120.                             // queue name => callback class name
  121.                             'YOUR_QUEUE_NAME' => \path\to\YourConsumer::class,
  122.                         ],
  123.                     ],
  124.                 ],*/
  125.         ],
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement