2015-07-13 03:01:42 +08:00
|
|
|
<?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.
|
|
|
|
|
|
|
|
|
*/
|
2018-01-20 23:00:54 +08:00
|
|
|
|
|
|
|
// Single option to disable non-auth external services such as Gravatar and Draw.io
|
2016-01-10 03:23:35 +08:00
|
|
|
'disable_services' => env('DISABLE_EXTERNAL_SERVICES', false),
|
2018-01-20 23:00:54 +08:00
|
|
|
'drawio' => env('DRAWIO', !env('DISABLE_EXTERNAL_SERVICES', false)),
|
|
|
|
|
|
|
|
|
2016-01-10 03:23:35 +08:00
|
|
|
'callback_url' => env('APP_URL', false),
|
2015-07-13 03:01:42 +08:00
|
|
|
|
2015-09-05 00:16:58 +08:00
|
|
|
'mailgun' => [
|
2015-07-13 03:01:42 +08:00
|
|
|
'domain' => '',
|
|
|
|
'secret' => '',
|
|
|
|
],
|
|
|
|
|
|
|
|
'mandrill' => [
|
|
|
|
'secret' => '',
|
|
|
|
],
|
|
|
|
|
2015-09-05 00:16:58 +08:00
|
|
|
'ses' => [
|
2015-07-13 03:01:42 +08:00
|
|
|
'key' => '',
|
|
|
|
'secret' => '',
|
|
|
|
'region' => 'us-east-1',
|
|
|
|
],
|
|
|
|
|
2015-09-05 00:16:58 +08:00
|
|
|
'stripe' => [
|
2015-09-11 02:31:09 +08:00
|
|
|
'model' => BookStack\User::class,
|
2015-07-13 03:01:42 +08:00
|
|
|
'key' => '',
|
|
|
|
'secret' => '',
|
|
|
|
],
|
|
|
|
|
2015-09-05 00:16:58 +08:00
|
|
|
'github' => [
|
|
|
|
'client_id' => env('GITHUB_APP_ID', false),
|
|
|
|
'client_secret' => env('GITHUB_APP_SECRET', false),
|
|
|
|
'redirect' => env('APP_URL') . '/login/service/github/callback',
|
2017-02-05 23:28:53 +08:00
|
|
|
'name' => 'GitHub',
|
2015-09-05 00:16:58 +08:00
|
|
|
],
|
|
|
|
|
|
|
|
'google' => [
|
|
|
|
'client_id' => env('GOOGLE_APP_ID', false),
|
|
|
|
'client_secret' => env('GOOGLE_APP_SECRET', false),
|
|
|
|
'redirect' => env('APP_URL') . '/login/service/google/callback',
|
2017-02-05 23:28:53 +08:00
|
|
|
'name' => 'Google',
|
2015-09-05 00:16:58 +08:00
|
|
|
],
|
|
|
|
|
2017-02-04 19:01:49 +08:00
|
|
|
'slack' => [
|
|
|
|
'client_id' => env('SLACK_APP_ID', false),
|
|
|
|
'client_secret' => env('SLACK_APP_SECRET', false),
|
|
|
|
'redirect' => env('APP_URL') . '/login/service/slack/callback',
|
2017-02-05 23:28:53 +08:00
|
|
|
'name' => 'Slack',
|
2017-02-04 19:01:49 +08:00
|
|
|
],
|
|
|
|
|
|
|
|
'facebook' => [
|
|
|
|
'client_id' => env('FACEBOOK_APP_ID', false),
|
|
|
|
'client_secret' => env('FACEBOOK_APP_SECRET', false),
|
|
|
|
'redirect' => env('APP_URL') . '/login/service/facebook/callback',
|
2017-02-05 23:28:53 +08:00
|
|
|
'name' => 'Facebook',
|
2017-02-04 19:01:49 +08:00
|
|
|
],
|
|
|
|
|
|
|
|
'twitter' => [
|
|
|
|
'client_id' => env('TWITTER_APP_ID', false),
|
|
|
|
'client_secret' => env('TWITTER_APP_SECRET', false),
|
|
|
|
'redirect' => env('APP_URL') . '/login/service/twitter/callback',
|
2017-02-05 23:28:53 +08:00
|
|
|
'name' => 'Twitter',
|
2017-02-04 19:01:49 +08:00
|
|
|
],
|
|
|
|
|
2017-10-01 20:19:17 +08:00
|
|
|
'azure' => [
|
|
|
|
'client_id' => env('AZURE_APP_ID', false),
|
|
|
|
'client_secret' => env('AZURE_APP_SECRET', false),
|
|
|
|
'tenant' => env('AZURE_TENANT', false),
|
|
|
|
'redirect' => env('APP_URL') . '/login/service/azure/callback',
|
|
|
|
'name' => 'Microsoft Azure',
|
|
|
|
],
|
|
|
|
|
2017-11-26 23:41:29 +08:00
|
|
|
'okta' => [
|
2017-12-09 21:32:45 +08:00
|
|
|
'client_id' => env('OKTA_APP_ID'),
|
|
|
|
'client_secret' => env('OKTA_APP_SECRET'),
|
2017-11-26 23:41:29 +08:00
|
|
|
'redirect' => env('APP_URL') . '/login/service/okta/callback',
|
|
|
|
'base_url' => env('OKTA_BASE_URL'),
|
|
|
|
'name' => 'Okta',
|
|
|
|
],
|
|
|
|
|
2016-01-10 03:23:35 +08:00
|
|
|
'ldap' => [
|
|
|
|
'server' => env('LDAP_SERVER', false),
|
|
|
|
'dn' => env('LDAP_DN', false),
|
|
|
|
'pass' => env('LDAP_PASS', false),
|
|
|
|
'base_dn' => env('LDAP_BASE_DN', false),
|
2016-01-16 07:21:47 +08:00
|
|
|
'user_filter' => env('LDAP_USER_FILTER', '(&(uid=${user}))'),
|
2017-02-26 22:51:49 +08:00
|
|
|
'version' => env('LDAP_VERSION', false),
|
|
|
|
'email_attribute' => env('LDAP_EMAIL_ATTRIBUTE', 'mail'),
|
2017-07-11 02:43:49 +08:00
|
|
|
'follow_referrals' => env('LDAP_FOLLOW_REFERRALS', false),
|
2016-01-10 03:23:35 +08:00
|
|
|
]
|
|
|
|
|
2015-07-13 03:01:42 +08:00
|
|
|
];
|