queue.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. return array(
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Default Queue Driver
  6. |--------------------------------------------------------------------------
  7. |
  8. | The Laravel queue API supports a variety of back-ends via an unified
  9. | API, giving you convenient access to each back-end using the same
  10. | syntax for each one. Here you may set the default queue driver.
  11. |
  12. | Supported: "sync", "beanstalkd", "sqs", "iron"
  13. |
  14. */
  15. 'default' => 'sync',
  16. /*
  17. |--------------------------------------------------------------------------
  18. | Queue Connections
  19. |--------------------------------------------------------------------------
  20. |
  21. | Here you may configure the connection information for each server that
  22. | is used by your application. A default configuration has been added
  23. | for each back-end shipped with Laravel. You are free to add more.
  24. |
  25. */
  26. 'connections' => array(
  27. 'sync' => array(
  28. 'driver' => 'sync',
  29. ),
  30. 'beanstalkd' => array(
  31. 'driver' => 'beanstalkd',
  32. 'host' => 'localhost',
  33. 'queue' => 'default',
  34. ),
  35. 'sqs' => array(
  36. 'driver' => 'sqs',
  37. 'key' => 'your-public-key',
  38. 'secret' => 'your-secret-key',
  39. 'queue' => 'your-queue-url',
  40. 'region' => 'us-east-1',
  41. ),
  42. 'iron' => array(
  43. 'driver' => 'iron',
  44. 'project' => 'your-project-id',
  45. 'token' => 'your-token',
  46. 'queue' => 'your-queue-name',
  47. ),
  48. ),
  49. );