1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-23 16:24:29 +00:00
pixelfed/config/queue.php

87 lines
2.6 KiB
PHP
Raw Normal View History

2018-04-15 23:56:48 +00:00
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Queue Connection Name
|--------------------------------------------------------------------------
|
| Laravel's queue API supports an assortment of back-ends via a single
| API, giving you convenient access to each back-end using the same
| syntax for every one. Here you may define a default connection.
|
*/
'default' => env('QUEUE_DRIVER', 'sync'),
/*
|--------------------------------------------------------------------------
| 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.
|
| Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
|
*/
'connections' => [
'sync' => [
'driver' => 'sync',
],
'database' => [
2018-08-28 03:07:36 +00:00
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
2018-04-15 23:56:48 +00:00
'retry_after' => 90,
],
'beanstalkd' => [
2018-08-28 03:07:36 +00:00
'driver' => 'beanstalkd',
'host' => 'localhost',
'queue' => 'default',
2018-04-15 23:56:48 +00:00
'retry_after' => 90,
],
'sqs' => [
'driver' => 'sqs',
2018-08-28 03:07:36 +00:00
'key' => env('SQS_KEY', 'your-public-key'),
2018-04-15 23:56:48 +00:00
'secret' => env('SQS_SECRET', 'your-secret-key'),
'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
2018-08-28 03:07:36 +00:00
'queue' => env('SQS_QUEUE', 'your-queue-name'),
2018-04-15 23:56:48 +00:00
'region' => env('SQS_REGION', 'us-east-1'),
],
'redis' => [
2018-08-28 03:07:36 +00:00
'driver' => 'redis',
'connection' => 'default',
'queue' => 'default',
'retry_after' => 1800,
2018-08-28 03:07:36 +00:00
'block_for' => null,
2018-04-15 23:56:48 +00: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.
|
*/
'failed' => [
'database' => env('DB_CONNECTION', 'mysql'),
2018-08-28 03:07:36 +00:00
'table' => 'failed_jobs',
2018-04-15 23:56:48 +00:00
],
];