config.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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: 4
  11. read_write_timeout: 4
  12. # requires php-amqplib v2.4.1+ and PHP5.4+
  13. keepalive: true
  14. # requires php-amqplib v2.4.1+
  15. heartbeat: 60
  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. service_alias: fd_tasklogger_service # no alias by default
  23. command_producer:
  24. connection: default
  25. exchange_options: {name: 'command', type: topic}
  26. service_alias: command_producer_service # no alias by default
  27. consumers:
  28. flowdat_tasklogger:
  29. connection: default
  30. exchange_options: {name: 'send', type: topic}
  31. queue_options: {name: "send.%env(AMQP_KEY)%", routing_keys : ["%env(AMQP_KEY)%"]}
  32. callback: flowdat_tasklogger_service # sf service id
  33. command_consumer:
  34. connection: default
  35. exchange_options: {name: 'command', type: topic}
  36. queue_options: {name: "command.%env(AMQP_KEY)%", routing_keys : ["%env(AMQP_KEY)%"]}
  37. callback: command_consumer_service # sf service id
  38. log_consumer:
  39. connection: default
  40. exchange_options: {name: 'log', type: topic}
  41. queue_options: {name: 'log', routing_keys : ["#"]}
  42. callback: log_consumer_service # sf service id