queue.php 2.6 KB
Newer Older
1 2
<?php

3
return [
4

Taylor Otwell committed
5 6 7 8 9 10 11 12 13 14 15 16 17
    /*
    |--------------------------------------------------------------------------
    | 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.
    |
    | Supported: "null", "sync", "database", "beanstalkd",
    |            "sqs", "iron", "redis"
    |
    */
18

Taylor Otwell committed
19
    'default' => env('QUEUE_DRIVER', 'sync'),
20

Taylor Otwell committed
21 22 23 24 25 26 27 28 29 30
    /*
    |--------------------------------------------------------------------------
    | 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.
    |
    */
31

Taylor Otwell committed
32
    'connections' => [
33

Taylor Otwell committed
34 35 36
        'sync' => [
            'driver' => 'sync',
        ],
37

Taylor Otwell committed
38 39 40 41 42 43
        'database' => [
            'driver' => 'database',
            'table' => 'jobs',
            'queue' => 'default',
            'expire' => 60,
        ],
Taylor Otwell committed
44

Taylor Otwell committed
45 46 47 48 49 50
        'beanstalkd' => [
            'driver' => 'beanstalkd',
            'host'   => 'localhost',
            'queue'  => 'default',
            'ttr'    => 60,
        ],
51

Taylor Otwell committed
52 53 54 55 56 57 58
        'sqs' => [
            'driver' => 'sqs',
            'key'    => 'your-public-key',
            'secret' => 'your-secret-key',
            'queue'  => 'your-queue-url',
            'region' => 'us-east-1',
        ],
59

Taylor Otwell committed
60 61 62 63 64 65 66 67
        'iron' => [
            'driver'  => 'iron',
            'host'    => 'mq-aws-us-east-1.iron.io',
            'token'   => 'your-token',
            'project' => 'your-project-id',
            'queue'   => 'your-queue-name',
            'encrypt' => true,
        ],
68

Taylor Otwell committed
69 70
        'redis' => [
            'driver' => 'redis',
71
            'connection' => 'default',
Taylor Otwell committed
72 73 74
            'queue'  => 'default',
            'expire' => 60,
        ],
75

Taylor Otwell committed
76
    ],
77

Taylor Otwell committed
78 79 80 81 82 83 84 85 86 87
    /*
    |--------------------------------------------------------------------------
    | 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.
    |
    */
88

Taylor Otwell committed
89 90 91
    'failed' => [
        'database' => 'mysql', 'table' => 'failed_jobs',
    ],
92

93
];