BookStack/app/Config/queue.php

48 lines
1.1 KiB
PHP
Raw Normal View History

2015-07-13 03:01:42 +08:00
<?php
/**
* Queue configuration options.
*
* Changes to these config files are not supported by BookStack and may break upon updates.
* Configuration should be altered via the `.env` file or environment variables.
* Do not edit this file unless you're happy to maintain any changes yourself.
*/
2015-07-13 03:01:42 +08:00
return [
2015-07-13 03:01:42 +08:00
// Default driver to use for the queue
// Options: null, sync, redis
2019-09-07 06:36:16 +08:00
'default' => env('QUEUE_CONNECTION', 'sync'),
2015-07-13 03:01:42 +08:00
// Queue connection configuration
2015-07-13 03:01:42 +08:00
'connections' => [
2019-09-14 06:58:40 +08:00
2015-07-13 03:01:42 +08:00
'sync' => [
'driver' => 'sync',
],
'database' => [
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
2019-09-14 06:58:40 +08:00
'retry_after' => 90,
2015-07-13 03:01:42 +08:00
],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
2019-09-14 06:58:40 +08:00
'queue' => env('REDIS_QUEUE', 'default'),
'retry_after' => 90,
'block_for' => null,
2015-07-13 03:01:42 +08:00
],
],
// Failed queue job logging
2015-07-13 03:01:42 +08:00
'failed' => [
'database' => 'mysql', 'table' => 'failed_jobs',
],
];