Cachet/config/queue.php

95 lines
2.7 KiB
PHP
Raw Normal View History

2015-03-20 18:30:45 -06:00
<?php
/*
* This file is part of Cachet.
*
2015-07-06 17:37:01 +01:00
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
2015-03-20 18:30:45 -06:00
return [
2015-03-20 18:32:24 -06:00
/*
|--------------------------------------------------------------------------
| Default Queue Driver
|--------------------------------------------------------------------------
|
| The Laravel queue API supports a variety of back-ends via an unified
| API, giving you convenient access to each back-end using the same
| syntax for each one. Here you may set the default queue driver.
|
2015-12-24 15:44:06 +00:00
| Supported: "null", "sync", "database", "beanstalkd", "sqs", "redis"
2015-03-20 18:32:24 -06:00
|
*/
2015-03-20 18:30:45 -06:00
2015-05-24 16:33:03 -05:00
'default' => env('QUEUE_DRIVER', 'database'),
2015-03-20 18:30:45 -06:00
2015-03-20 18:32:24 -06:00
/*
|--------------------------------------------------------------------------
| Queue Connections
|--------------------------------------------------------------------------
|
| Here you may configure the connection information for each server that
| is used by your application. A default configuration has been added
| for each back-end shipped with Laravel. You are free to add more.
|
*/
2015-03-20 18:30:45 -06:00
2015-03-20 18:32:24 -06:00
'connections' => [
2015-03-20 18:30:45 -06:00
2015-03-20 18:32:24 -06:00
'sync' => [
'driver' => 'sync',
],
2015-03-20 18:30:45 -06:00
2015-03-20 18:32:24 -06:00
'database' => [
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
2016-10-19 07:53:10 +00:00
'retry_after' => 60,
2015-03-20 18:32:24 -06:00
],
2015-03-20 18:30:45 -06:00
2015-03-20 18:32:24 -06:00
'beanstalkd' => [
'driver' => 'beanstalkd',
'host' => 'localhost',
'queue' => 'default',
2016-10-19 07:53:10 +00:00
'retry_after' => 60,
2015-03-20 18:32:24 -06:00
],
2015-03-20 18:30:45 -06:00
2015-03-20 18:32:24 -06:00
'sqs' => [
'driver' => 'sqs',
'key' => 'your-public-key',
'secret' => 'your-secret-key',
2015-12-24 15:44:06 +00:00
'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id',
'queue' => 'your-queue-name',
2015-03-20 18:32:24 -06:00
'region' => 'us-east-1',
],
2015-03-20 18:30:45 -06:00
2015-03-20 18:32:24 -06:00
'redis' => [
'driver' => 'redis',
'connection' => 'default',
'queue' => 'default',
2016-10-19 07:53:10 +00:00
'retry_after' => 86400,
2015-03-20 18:32:24 -06:00
],
2015-03-20 18:30:45 -06:00
2015-03-20 18:32:24 -06:00
],
2015-03-20 18:30:45 -06:00
2015-03-20 18:32:24 -06:00
/*
|--------------------------------------------------------------------------
| Failed Queue Jobs
|--------------------------------------------------------------------------
|
| These options configure the behavior of failed queue job logging so you
| can control which database and table are used to store the jobs that
| have failed. You may change them to any database / table you wish.
|
*/
2015-03-20 18:30:45 -06:00
2015-03-20 18:32:24 -06:00
'failed' => [
2015-10-30 18:24:15 +00:00
'database' => env('DB_DRIVER', 'sqlite'),
'table' => 'failed_jobs',
2015-03-20 18:32:24 -06:00
],
2015-03-20 18:30:45 -06:00
];