]> BookStack Code Mirror - bookstack/blob - app/Config/queue.php
Apply fixes from StyleCI
[bookstack] / app / Config / queue.php
1 <?php
2
3 /**
4  * Queue configuration options.
5  *
6  * Changes to these config files are not supported by BookStack and may break upon updates.
7  * Configuration should be altered via the `.env` file or environment variables.
8  * Do not edit this file unless you're happy to maintain any changes yourself.
9  */
10
11 return [
12
13     // Default driver to use for the queue
14     // Options: null, sync, redis
15     'default' => env('QUEUE_CONNECTION', 'sync'),
16
17     // Queue connection configuration
18     'connections' => [
19
20         'sync' => [
21             'driver' => 'sync',
22         ],
23
24         'database' => [
25             'driver'      => 'database',
26             'table'       => 'jobs',
27             'queue'       => 'default',
28             'retry_after' => 90,
29         ],
30
31         'redis' => [
32             'driver'      => 'redis',
33             'connection'  => 'default',
34             'queue'       => env('REDIS_QUEUE', 'default'),
35             'retry_after' => 90,
36             'block_for'   => null,
37         ],
38
39     ],
40
41     // Failed queue job logging
42     'failed' => [
43         'database' => 'mysql', 'table' => 'failed_jobs',
44     ],
45
46 ];