queue.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. 'redis' => array(
  49. 'driver' => 'redis',
  50. 'queue' => 'default',
  51. ),
  52. ),
  53. );