config.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. old_sound_rabbit_mq:
  2. connections:
  3. default:
  4. host: "%rabbit_mq.host%"
  5. port: "%rabbit_mq.port%"
  6. user: "%rabbit_mq.user%"
  7. password: "%rabbit_mq.password%"
  8. vhost: "%rabbit_mq.vhost%"
  9. lazy: true
  10. connection_timeout: 3
  11. read_write_timeout: 3
  12. # requires php-amqplib v2.4.1+ and PHP5.4+
  13. keepalive: false
  14. # requires php-amqplib v2.4.1+
  15. heartbeat: 0
  16. #requires php_sockets.dll
  17. # use_socket: true # default false
  18. producers:
  19. flowdat_tasklogger:
  20. connection: default
  21. exchange_options: {name: 'send', type: topic}
  22. queue_options: {name: 'command', routing_keys : ["%env(AMQP_KEY)%"]}
  23. service_alias: fd_tasklogger_service # no alias by default
  24. command_producer:
  25. connection: default
  26. exchange_options: {name: 'command', type: topic}
  27. queue_options: {name: 'command', routing_keys : ["%env(AMQP_KEY)%"]}
  28. service_alias: command_producer_service # no alias by default
  29. consumers:
  30. flowdat_tasklogger:
  31. connection: default
  32. exchange_options: {name: 'send', type: topic}
  33. queue_options: {name: 'command', routing_keys : ["%env(AMQP_KEY)%"]}
  34. callback: flowdat_tasklogger_service # sf service id
  35. command_consumer:
  36. connection: default
  37. exchange_options: {name: 'command', type: topic}
  38. queue_options: {name: 'command', routing_keys : ["%env(AMQP_KEY)%"]}
  39. callback: command_consumer_service # sf service id