2015-07-12 21:01:42 +02:00
|
|
|
<?php
|
|
|
|
|
2018-12-23 17:26:39 +01:00
|
|
|
/**
|
|
|
|
* Third party service 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-12 21:01:42 +02:00
|
|
|
|
2018-12-23 17:26:39 +01:00
|
|
|
return [
|
2018-01-20 16:00:54 +01:00
|
|
|
|
|
|
|
// Single option to disable non-auth external services such as Gravatar and Draw.io
|
2016-01-09 20:23:35 +01:00
|
|
|
'disable_services' => env('DISABLE_EXTERNAL_SERVICES', false),
|
2018-12-22 20:29:19 +01:00
|
|
|
|
|
|
|
// Draw.io integration active
|
2018-01-20 16:00:54 +01:00
|
|
|
'drawio' => env('DRAWIO', !env('DISABLE_EXTERNAL_SERVICES', false)),
|
|
|
|
|
2018-12-22 20:29:19 +01:00
|
|
|
// URL for fetching avatars
|
2018-12-23 16:34:38 +01:00
|
|
|
'avatar_url' => env('AVATAR_URL', ''),
|
2018-01-20 16:00:54 +01:00
|
|
|
|
2018-12-22 20:29:19 +01:00
|
|
|
// Callback URL for social authentication methods
|
2016-01-09 20:23:35 +01:00
|
|
|
'callback_url' => env('APP_URL', false),
|
2015-07-12 21:01:42 +02:00
|
|
|
|
2015-09-04 18:16:58 +02:00
|
|
|
'mailgun' => [
|
2015-07-12 21:01:42 +02:00
|
|
|
'domain' => '',
|
|
|
|
'secret' => '',
|
|
|
|
],
|
|
|
|
|
2015-09-04 18:16:58 +02:00
|
|
|
'ses' => [
|
2015-07-12 21:01:42 +02:00
|
|
|
'key' => '',
|
|
|
|
'secret' => '',
|
|
|
|
'region' => 'us-east-1',
|
|
|
|
],
|
|
|
|
|
2015-09-04 18:16:58 +02:00
|
|
|
'stripe' => [
|
2018-09-25 13:30:50 +02:00
|
|
|
'model' => \BookStack\Auth\User::class,
|
2015-07-12 21:01:42 +02:00
|
|
|
'key' => '',
|
|
|
|
'secret' => '',
|
|
|
|
],
|
|
|
|
|
2015-09-04 18:16:58 +02: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 16:28:53 +01:00
|
|
|
'name' => 'GitHub',
|
2018-09-21 19:05:06 +02:00
|
|
|
'auto_register' => env('GITHUB_AUTO_REGISTER', false),
|
|
|
|
'auto_confirm' => env('GITHUB_AUTO_CONFIRM_EMAIL', false),
|
2015-09-04 18:16:58 +02: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 16:28:53 +01:00
|
|
|
'name' => 'Google',
|
2018-09-21 19:05:06 +02:00
|
|
|
'auto_register' => env('GOOGLE_AUTO_REGISTER', false),
|
|
|
|
'auto_confirm' => env('GOOGLE_AUTO_CONFIRM_EMAIL', false),
|
2018-11-04 20:15:58 +01:00
|
|
|
'select_account' => env('GOOGLE_SELECT_ACCOUNT', false),
|
2015-09-04 18:16:58 +02:00
|
|
|
],
|
|
|
|
|
2017-02-04 12:01:49 +01: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 16:28:53 +01:00
|
|
|
'name' => 'Slack',
|
2018-09-21 19:05:06 +02:00
|
|
|
'auto_register' => env('SLACK_AUTO_REGISTER', false),
|
|
|
|
'auto_confirm' => env('SLACK_AUTO_CONFIRM_EMAIL', false),
|
2017-02-04 12:01:49 +01: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 16:28:53 +01:00
|
|
|
'name' => 'Facebook',
|
2018-09-21 19:05:06 +02:00
|
|
|
'auto_register' => env('FACEBOOK_AUTO_REGISTER', false),
|
|
|
|
'auto_confirm' => env('FACEBOOK_AUTO_CONFIRM_EMAIL', false),
|
2017-02-04 12:01:49 +01: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 16:28:53 +01:00
|
|
|
'name' => 'Twitter',
|
2018-09-21 19:05:06 +02:00
|
|
|
'auto_register' => env('TWITTER_AUTO_REGISTER', false),
|
|
|
|
'auto_confirm' => env('TWITTER_AUTO_CONFIRM_EMAIL', false),
|
2017-02-04 12:01:49 +01:00
|
|
|
],
|
|
|
|
|
2017-10-01 14:19:17 +02: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',
|
2018-09-21 19:05:06 +02:00
|
|
|
'auto_register' => env('AZURE_AUTO_REGISTER', false),
|
|
|
|
'auto_confirm' => env('AZURE_AUTO_CONFIRM_EMAIL', false),
|
2017-10-01 14:19:17 +02:00
|
|
|
],
|
|
|
|
|
2017-11-26 16:41:29 +01:00
|
|
|
'okta' => [
|
2017-12-09 14:32:45 +01:00
|
|
|
'client_id' => env('OKTA_APP_ID'),
|
|
|
|
'client_secret' => env('OKTA_APP_SECRET'),
|
2017-11-26 16:41:29 +01:00
|
|
|
'redirect' => env('APP_URL') . '/login/service/okta/callback',
|
|
|
|
'base_url' => env('OKTA_BASE_URL'),
|
|
|
|
'name' => 'Okta',
|
2018-09-21 19:05:06 +02:00
|
|
|
'auto_register' => env('OKTA_AUTO_REGISTER', false),
|
|
|
|
'auto_confirm' => env('OKTA_AUTO_CONFIRM_EMAIL', false),
|
2018-01-31 16:02:07 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
'gitlab' => [
|
2018-02-01 18:26:19 +01:00
|
|
|
'client_id' => env('GITLAB_APP_ID'),
|
|
|
|
'client_secret' => env('GITLAB_APP_SECRET'),
|
|
|
|
'redirect' => env('APP_URL') . '/login/service/gitlab/callback',
|
2018-02-11 19:18:16 +01:00
|
|
|
'instance_uri' => env('GITLAB_BASE_URI'), // Needed only for self hosted instances
|
|
|
|
'name' => 'GitLab',
|
2018-09-21 19:05:06 +02:00
|
|
|
'auto_register' => env('GITLAB_AUTO_REGISTER', false),
|
|
|
|
'auto_confirm' => env('GITLAB_AUTO_CONFIRM_EMAIL', false),
|
2018-01-31 16:02:07 +01:00
|
|
|
],
|
2017-11-26 16:41:29 +01:00
|
|
|
|
2018-01-29 09:28:56 +01:00
|
|
|
'twitch' => [
|
2018-02-01 08:51:35 +01:00
|
|
|
'client_id' => env('TWITCH_APP_ID'),
|
|
|
|
'client_secret' => env('TWITCH_APP_SECRET'),
|
|
|
|
'redirect' => env('APP_URL') . '/login/service/twitch/callback',
|
2018-01-29 09:28:56 +01:00
|
|
|
'name' => 'Twitch',
|
2018-09-21 19:05:06 +02:00
|
|
|
'auto_register' => env('TWITCH_AUTO_REGISTER', false),
|
|
|
|
'auto_confirm' => env('TWITCH_AUTO_CONFIRM_EMAIL', false),
|
2018-02-01 08:51:35 +01:00
|
|
|
],
|
2018-09-21 19:05:06 +02:00
|
|
|
|
2018-06-28 09:01:36 +02:00
|
|
|
'discord' => [
|
|
|
|
'client_id' => env('DISCORD_APP_ID'),
|
|
|
|
'client_secret' => env('DISCORD_APP_SECRET'),
|
|
|
|
'redirect' => env('APP_URL') . '/login/service/discord/callback',
|
|
|
|
'name' => 'Discord',
|
2018-09-21 19:05:06 +02:00
|
|
|
'auto_register' => env('DISCORD_AUTO_REGISTER', false),
|
|
|
|
'auto_confirm' => env('DISCORD_AUTO_CONFIRM_EMAIL', false),
|
2018-06-28 09:01:36 +02:00
|
|
|
],
|
2017-11-26 16:41:29 +01:00
|
|
|
|
2016-01-09 20:23:35 +01: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 00:21:47 +01:00
|
|
|
'user_filter' => env('LDAP_USER_FILTER', '(&(uid=${user}))'),
|
2017-02-26 15:51:49 +01:00
|
|
|
'version' => env('LDAP_VERSION', false),
|
|
|
|
'email_attribute' => env('LDAP_EMAIL_ATTRIBUTE', 'mail'),
|
2019-03-09 05:55:11 +01:00
|
|
|
'display_name_attribute' => env('LDAP_DISPLAY_NAME_ATTRIBUTE', 'cn'),
|
2017-07-10 20:43:49 +02:00
|
|
|
'follow_referrals' => env('LDAP_FOLLOW_REFERRALS', false),
|
2018-07-02 19:09:39 +02:00
|
|
|
'user_to_groups' => env('LDAP_USER_TO_GROUPS',false),
|
|
|
|
'group_attribute' => env('LDAP_GROUP_ATTRIBUTE', 'memberOf'),
|
|
|
|
'remove_from_groups' => env('LDAP_REMOVE_FROM_GROUPS',false),
|
2018-10-27 23:05:46 +02:00
|
|
|
'tls_insecure' => env('LDAP_TLS_INSECURE', false),
|
2018-07-02 19:09:39 +02:00
|
|
|
]
|
2016-01-09 20:23:35 +01:00
|
|
|
|
2015-07-12 21:01:42 +02:00
|
|
|
];
|