| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-24 00:26:39 +08:00
										 |  |  | /** | 
					
						
							|  |  |  |  * 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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-24 00:26:39 +08:00
										 |  |  | return [ | 
					
						
							| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-24 00:26:39 +08:00
										 |  |  |     // Default driver to use for the queue
 | 
					
						
							|  |  |  |     // Options: null, sync, redis
 | 
					
						
							| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  |     'default' => env('QUEUE_DRIVER', 'sync'), | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-24 00:26:39 +08:00
										 |  |  |     // Queue connection configuration
 | 
					
						
							| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  |     'connections' => [ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         'sync' => [ | 
					
						
							|  |  |  |             'driver' => 'sync', | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         'database' => [ | 
					
						
							|  |  |  |             'driver' => 'database', | 
					
						
							|  |  |  |             'table' => 'jobs', | 
					
						
							|  |  |  |             'queue' => 'default', | 
					
						
							|  |  |  |             'expire' => 60, | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         'beanstalkd' => [ | 
					
						
							|  |  |  |             'driver' => 'beanstalkd', | 
					
						
							|  |  |  |             'host'   => 'localhost', | 
					
						
							|  |  |  |             'queue'  => 'default', | 
					
						
							|  |  |  |             'ttr'    => 60, | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         'sqs' => [ | 
					
						
							|  |  |  |             'driver' => 'sqs', | 
					
						
							|  |  |  |             'key'    => 'your-public-key', | 
					
						
							|  |  |  |             'secret' => 'your-secret-key', | 
					
						
							|  |  |  |             'queue'  => 'your-queue-url', | 
					
						
							|  |  |  |             'region' => 'us-east-1', | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         'iron' => [ | 
					
						
							|  |  |  |             'driver'  => 'iron', | 
					
						
							|  |  |  |             'host'    => 'mq-aws-us-east-1.iron.io', | 
					
						
							|  |  |  |             'token'   => 'your-token', | 
					
						
							|  |  |  |             'project' => 'your-project-id', | 
					
						
							|  |  |  |             'queue'   => 'your-queue-name', | 
					
						
							|  |  |  |             'encrypt' => true, | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         'redis' => [ | 
					
						
							|  |  |  |             'driver' => 'redis', | 
					
						
							|  |  |  |             'connection' => 'default', | 
					
						
							|  |  |  |             'queue'  => 'default', | 
					
						
							|  |  |  |             'expire' => 60, | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-24 00:26:39 +08:00
										 |  |  |     // Failed queue job logging
 | 
					
						
							| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  |     'failed' => [ | 
					
						
							|  |  |  |         'database' => 'mysql', 'table' => 'failed_jobs', | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ]; |