server/src/config/queue.php
changeset 1 01a844d292ac
child 2 00e2916104fe
equal deleted inserted replaced
0:279124b91971 1:01a844d292ac
       
     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 			'queue'  => 'default',
       
    72 			'expire' => 60,
       
    73 		],
       
    74 
       
    75 	],
       
    76 
       
    77 	/*
       
    78 	|--------------------------------------------------------------------------
       
    79 	| Failed Queue Jobs
       
    80 	|--------------------------------------------------------------------------
       
    81 	|
       
    82 	| These options configure the behavior of failed queue job logging so you
       
    83 	| can control which database and table are used to store the jobs that
       
    84 	| have failed. You may change them to any database / table you wish.
       
    85 	|
       
    86 	*/
       
    87 
       
    88 	'failed' => [
       
    89 		'database' => 'mysql', 'table' => 'failed_jobs',
       
    90 	],
       
    91 
       
    92 ];