mirror of https://github.com/flarum/flarum
				
				
				
			Hardcode even more config in bootstrap.php
							parent
							
								
									6f8cf7e24d
								
							
						
					
					
						commit
						bfaf29393f
					
				|  | @ -59,6 +59,26 @@ $app->instance('config', new \Illuminate\Config\Repository([ | |||
| 		'domain' => null, | ||||
| 		'secure' => false, | ||||
| 	], | ||||
| 	'cache' => [ | ||||
| 		'default' => 'file', | ||||
| 		'stores' => [ | ||||
| 			'file' => [ | ||||
| 				'driver' => 'file', | ||||
| 				'path'   => storage_path().'/framework/cache', | ||||
| 			], | ||||
| 		], | ||||
| 		'prefix' => 'flarum', | ||||
| 	], | ||||
| 	'filesystems' => [ | ||||
| 		'default' => 'local', | ||||
| 		'cloud' => 's3', | ||||
| 		'disks' => [ | ||||
| 			'flarum-avatars' => [ | ||||
| 				'driver' => 'local', | ||||
| 				'root'   => public_path('assets/avatars') | ||||
| 			], | ||||
| 		], | ||||
| 	], | ||||
| ])); | ||||
| 
 | ||||
| // ConfigureLogging
 | ||||
|  |  | |||
|  | @ -1,79 +0,0 @@ | |||
| <?php | ||||
| 
 | ||||
| return [ | ||||
| 
 | ||||
| 	/* | ||||
| 	|-------------------------------------------------------------------------- | ||||
| 	| Default Cache Store | ||||
| 	|-------------------------------------------------------------------------- | ||||
| 	| | ||||
| 	| This option controls the default cache connection that gets used while | ||||
| 	| using this caching library. This connection is used when another is | ||||
| 	| not explicitly specified when executing a given caching function. | ||||
| 	| | ||||
| 	*/ | ||||
| 
 | ||||
| 	'default' => env('CACHE_DRIVER', 'file'), | ||||
| 
 | ||||
| 	/* | ||||
| 	|-------------------------------------------------------------------------- | ||||
| 	| Cache Stores | ||||
| 	|-------------------------------------------------------------------------- | ||||
| 	| | ||||
| 	| Here you may define all of the cache "stores" for your application as | ||||
| 	| well as their drivers. You may even define multiple stores for the | ||||
| 	| same cache driver to group types of items stored in your caches. | ||||
| 	| | ||||
| 	*/ | ||||
| 
 | ||||
| 	'stores' => [ | ||||
| 
 | ||||
| 		'apc' => [ | ||||
| 			'driver' => 'apc' | ||||
| 		], | ||||
| 
 | ||||
| 		'array' => [ | ||||
| 			'driver' => 'array' | ||||
| 		], | ||||
| 
 | ||||
| 		'database' => [ | ||||
| 			'driver' => 'database', | ||||
| 			'table'  => 'cache', | ||||
| 			'connection' => null, | ||||
| 		], | ||||
| 
 | ||||
| 		'file' => [ | ||||
| 			'driver' => 'file', | ||||
| 			'path'   => storage_path().'/framework/cache', | ||||
| 		], | ||||
| 
 | ||||
| 		'memcached' => [ | ||||
| 			'driver'  => 'memcached', | ||||
| 			'servers' => [ | ||||
| 				[ | ||||
| 					'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100 | ||||
| 				], | ||||
| 			], | ||||
| 		], | ||||
| 
 | ||||
| 		'redis' => [ | ||||
| 			'driver' => 'redis', | ||||
| 			'connection' => 'default', | ||||
| 		], | ||||
| 
 | ||||
| 	], | ||||
| 
 | ||||
| 	/* | ||||
| 	|-------------------------------------------------------------------------- | ||||
| 	| Cache Key Prefix | ||||
| 	|-------------------------------------------------------------------------- | ||||
| 	| | ||||
| 	| When utilizing a RAM based store such as APC or Memcached, there might | ||||
| 	| be other applications utilizing the same cache. So, we'll specify a | ||||
| 	| value to get prefixed to all our keys so we can avoid collisions. | ||||
| 	| | ||||
| 	*/ | ||||
| 
 | ||||
| 	'prefix' => 'laravel', | ||||
| 
 | ||||
| ]; | ||||
|  | @ -1,35 +0,0 @@ | |||
| <?php | ||||
| 
 | ||||
| return [ | ||||
| 
 | ||||
| 	/* | ||||
| 	|-------------------------------------------------------------------------- | ||||
| 	| Additional Compiled Classes | ||||
| 	|-------------------------------------------------------------------------- | ||||
| 	| | ||||
| 	| Here you may specify additional classes to include in the compiled file | ||||
| 	| generated by the `artisan optimize` command. These should be classes | ||||
| 	| that are included on basically every request into the application. | ||||
| 	| | ||||
| 	*/ | ||||
| 
 | ||||
| 	'files' => [ | ||||
| 
 | ||||
| 	], | ||||
| 
 | ||||
| 	/* | ||||
| 	|-------------------------------------------------------------------------- | ||||
| 	| Compiled File Providers | ||||
| 	|-------------------------------------------------------------------------- | ||||
| 	| | ||||
| 	| Here you may list service providers which define a "compiles" function
 | ||||
| 	| that returns additional files that should be compiled, providing an | ||||
| 	| easy way to get common files from any packages you are utilizing. | ||||
| 	| | ||||
| 	*/ | ||||
| 
 | ||||
| 	'providers' => [ | ||||
| 		//
 | ||||
| 	], | ||||
| 
 | ||||
| ]; | ||||
|  | @ -1,53 +0,0 @@ | |||
| <?php | ||||
| 
 | ||||
| return [ | ||||
| 
 | ||||
| 	/* | ||||
| 	|-------------------------------------------------------------------------- | ||||
| 	| Default Filesystem Disk | ||||
| 	|-------------------------------------------------------------------------- | ||||
| 	| | ||||
| 	| Here you may specify the default filesystem disk that should be used | ||||
| 	| by the framework. A "local" driver, as well as a variety of cloud | ||||
| 	| based drivers are available for your choosing. Just store away! | ||||
| 	| | ||||
| 	| Supported: "local", "s3", "rackspace" | ||||
| 	| | ||||
| 	*/ | ||||
| 
 | ||||
| 	'default' => 'local', | ||||
| 
 | ||||
| 	/* | ||||
| 	|-------------------------------------------------------------------------- | ||||
| 	| Default Cloud Filesystem Disk | ||||
| 	|-------------------------------------------------------------------------- | ||||
| 	| | ||||
| 	| Many applications store files both locally and in the cloud. For this | ||||
| 	| reason, you may specify a default "cloud" driver here. This driver | ||||
| 	| will be bound as the Cloud disk implementation in the container. | ||||
| 	| | ||||
| 	*/ | ||||
| 
 | ||||
| 	'cloud' => 's3', | ||||
| 
 | ||||
| 	/* | ||||
| 	|-------------------------------------------------------------------------- | ||||
| 	| Filesystem Disks | ||||
| 	|-------------------------------------------------------------------------- | ||||
| 	| | ||||
| 	| Here you may configure as many filesystem "disks" as you wish, and you | ||||
| 	| may even configure multiple disks of the same driver. Defaults have | ||||
| 	| been setup for each driver as an example of the required options. | ||||
| 	| | ||||
| 	*/ | ||||
| 
 | ||||
| 	'disks' => [ | ||||
| 
 | ||||
| 		'flarum-avatars' => [ | ||||
| 			'driver' => 'local', | ||||
| 			'root'   => public_path('assets/avatars') | ||||
| 		], | ||||
| 
 | ||||
| 	], | ||||
| 
 | ||||
| ]; | ||||
|  | @ -1,37 +0,0 @@ | |||
| <?php | ||||
| 
 | ||||
| return [ | ||||
| 
 | ||||
| 	/* | ||||
| 	|-------------------------------------------------------------------------- | ||||
| 	| Third Party Services | ||||
| 	|-------------------------------------------------------------------------- | ||||
| 	| | ||||
| 	| This file is for storing the credentials for third party services such | ||||
| 	| as Stripe, Mailgun, Mandrill, and others. This file provides a sane | ||||
| 	| default location for this type of information, allowing packages | ||||
| 	| to have a conventional place to find your various credentials. | ||||
| 	| | ||||
| 	*/ | ||||
| 
 | ||||
| 	'mailgun' => [ | ||||
| 		'domain' => '', | ||||
| 		'secret' => '', | ||||
| 	], | ||||
| 
 | ||||
| 	'mandrill' => [ | ||||
| 		'secret' => '', | ||||
| 	], | ||||
| 
 | ||||
| 	'ses' => [ | ||||
| 		'key' => '', | ||||
| 		'secret' => '', | ||||
| 		'region' => 'us-east-1', | ||||
| 	], | ||||
| 
 | ||||
| 	'stripe' => [ | ||||
| 		'model'  => 'User', | ||||
| 		'secret' => '', | ||||
| 	], | ||||
| 
 | ||||
| ]; | ||||
		Loading…
	
		Reference in New Issue
	
	 Franz Liedke
						Franz Liedke