0
|
1 |
<?php |
|
2 |
|
|
3 |
return [ |
|
4 |
|
|
5 |
/* |
|
6 |
|-------------------------------------------------------------------------- |
|
7 |
| Default Queue Driver |
|
8 |
|-------------------------------------------------------------------------- |
|
9 |
| |
|
10 |
| The Laravel queue API supports a variety of back-ends via an unified |
|
11 |
| API, giving you convenient access to each back-end using the same |
|
12 |
| syntax for each one. Here you may set the default queue driver. |
|
13 |
| |
|
14 |
| Supported: "null", "sync", "database", "beanstalkd", |
|
15 |
| "sqs", "iron", "redis" |
|
16 |
| |
|
17 |
*/ |
|
18 |
|
|
19 |
'default' => env('QUEUE_DRIVER', 'sync'), |
|
20 |
|
|
21 |
/* |
|
22 |
|-------------------------------------------------------------------------- |
|
23 |
| Queue Connections |
|
24 |
|-------------------------------------------------------------------------- |
|
25 |
| |
|
26 |
| Here you may configure the connection information for each server that |
|
27 |
| is used by your application. A default configuration has been added |
|
28 |
| for each back-end shipped with Laravel. You are free to add more. |
|
29 |
| |
|
30 |
*/ |
|
31 |
|
|
32 |
'connections' => [ |
|
33 |
|
|
34 |
'sync' => [ |
|
35 |
'driver' => 'sync', |
|
36 |
], |
|
37 |
|
|
38 |
'database' => [ |
|
39 |
'driver' => 'database', |
|
40 |
'table' => 'jobs', |
|
41 |
'queue' => 'default', |
|
42 |
'expire' => 60, |
|
43 |
], |
|
44 |
|
|
45 |
'beanstalkd' => [ |
|
46 |
'driver' => 'beanstalkd', |
|
47 |
'host' => 'localhost', |
|
48 |
'queue' => 'default', |
|
49 |
'ttr' => 60, |
|
50 |
], |
|
51 |
|
|
52 |
'sqs' => [ |
|
53 |
'driver' => 'sqs', |
|
54 |
'key' => 'your-public-key', |
|
55 |
'secret' => 'your-secret-key', |
|
56 |
'queue' => 'your-queue-url', |
|
57 |
'region' => 'us-east-1', |
|
58 |
], |
|
59 |
|
|
60 |
'iron' => [ |
|
61 |
'driver' => 'iron', |
|
62 |
'host' => 'mq-aws-us-east-1.iron.io', |
|
63 |
'token' => 'your-token', |
|
64 |
'project' => 'your-project-id', |
|
65 |
'queue' => 'your-queue-name', |
|
66 |
'encrypt' => true, |
|
67 |
], |
|
68 |
|
|
69 |
'redis' => [ |
|
70 |
'driver' => 'redis', |
|
71 |
'connection' => 'default', |
|
72 |
'queue' => 'default', |
|
73 |
'expire' => 60, |
|
74 |
], |
|
75 |
|
|
76 |
], |
|
77 |
|
|
78 |
/* |
|
79 |
|-------------------------------------------------------------------------- |
|
80 |
| Failed Queue Jobs |
|
81 |
|-------------------------------------------------------------------------- |
|
82 |
| |
|
83 |
| These options configure the behavior of failed queue job logging so you |
|
84 |
| can control which database and table are used to store the jobs that |
|
85 |
| have failed. You may change them to any database / table you wish. |
|
86 |
| |
|
87 |
*/ |
|
88 |
|
|
89 |
'failed' => [ |
|
90 |
'database' => 'mysql', 'table' => 'failed_jobs', |
|
91 |
], |
|
92 |
|
|
93 |
]; |