126 lines
3.6 KiB
PHP
126 lines
3.6 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/*
|
|
* This file is part of Laravel GitHub.
|
|
*
|
|
* (c) Graham Campbell <graham@alt-three.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
return [
|
|
'git' => [
|
|
'rconfig-username' => 'rconfig',
|
|
'rconfig-template-repo' => 'rConfig-templates',
|
|
],
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Default Connection Name
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here you may specify which of the connections below you wish to use as
|
|
| your default connection for all work. Of course, you may use many
|
|
| connections at once using the manager class.
|
|
|
|
|
*/
|
|
|
|
'default' => 'main',
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| GitHub Connections
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here are each of the connections setup for your application. Example
|
|
| configuration has been included, but you may add as many connections as
|
|
| you would like. Note that the 5 supported authentication methods are:
|
|
| "application", "jwt", "none", "private", and "token".
|
|
|
|
|
*/
|
|
|
|
'connections' => [
|
|
|
|
'main' => [
|
|
'method' => 'none',
|
|
'token' => 'your-token',
|
|
// 'backoff' => false,
|
|
// 'cache' => false,
|
|
// 'version' => 'v3',
|
|
// 'enterprise' => false,
|
|
],
|
|
|
|
'app' => [
|
|
'method' => 'application',
|
|
'clientId' => 'your-client-id',
|
|
'clientSecret' => 'your-client-secret',
|
|
// 'backoff' => false,
|
|
// 'cache' => false,
|
|
// 'version' => 'v3',
|
|
// 'enterprise' => false,
|
|
],
|
|
|
|
'jwt' => [
|
|
'method' => 'jwt',
|
|
'token' => 'your-jwt-token',
|
|
// 'backoff' => false,
|
|
// 'cache' => false,
|
|
// 'version' => 'v3',
|
|
// 'enterprise' => false,
|
|
],
|
|
|
|
'private' => [
|
|
'method' => 'private',
|
|
'appId' => 'your-github-app-id',
|
|
'keyPath' => 'your-private-key-path',
|
|
// 'key' => 'your-private-key-content',
|
|
// 'passphrase' => 'your-private-key-passphrase'
|
|
// 'backoff' => false,
|
|
// 'cache' => false,
|
|
// 'version' => 'v3',
|
|
// 'enterprise' => false,
|
|
],
|
|
|
|
'none' => [
|
|
'method' => 'none',
|
|
// 'backoff' => false,
|
|
// 'cache' => false,
|
|
// 'version' => 'v3',
|
|
// 'enterprise' => false,
|
|
],
|
|
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| HTTP Cache
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here are each of the cache configurations setup for your application.
|
|
| Only the "illuminate" driver is provided out of the box. Example
|
|
| configuration has been included.
|
|
|
|
|
*/
|
|
|
|
'cache' => [
|
|
|
|
'main' => [
|
|
'driver' => 'illuminate',
|
|
'connector' => null, // null means use default driver
|
|
// 'min' => 43200,
|
|
// 'max' => 172800
|
|
],
|
|
|
|
'bar' => [
|
|
'driver' => 'illuminate',
|
|
'connector' => 'redis', // config/cache.php
|
|
// 'min' => 43200,
|
|
// 'max' => 172800
|
|
],
|
|
|
|
],
|
|
|
|
];
|