]> BookStack Code Mirror - bookstack/blob - config/services.php
Hide permissions table unless custom permissions are enabled
[bookstack] / config / services.php
1 <?php
2
3 /**
4  * Third party service configuration options.
5  *
6  * Changes to these config files are not supported by BookStack and may break upon updates.
7  * Configuration should be altered via the `.env` file or environment variables.
8  * Do not edit this file unless you're happy to maintain any changes yourself.
9  */
10
11 return [
12
13     // Single option to disable non-auth external services such as Gravatar and Draw.io
14     'disable_services' => env('DISABLE_EXTERNAL_SERVICES', false),
15
16     // Draw.io integration active
17     'drawio' => env('DRAWIO', !env('DISABLE_EXTERNAL_SERVICES', false)),
18
19     // URL for fetching avatars
20     'avatar_url' => env('AVATAR_URL', ''),
21
22     // Callback URL for social authentication methods
23     'callback_url' => env('APP_URL', false),
24
25     'mailgun'  => [
26         'domain' => '',
27         'secret' => '',
28     ],
29
30     'ses'      => [
31         'key'    => '',
32         'secret' => '',
33         'region' => 'us-east-1',
34     ],
35
36     'stripe'   => [
37         'model'  => \BookStack\Auth\User::class,
38         'key'    => '',
39         'secret' => '',
40     ],
41
42     'github'   => [
43         'client_id'     => env('GITHUB_APP_ID', false),
44         'client_secret' => env('GITHUB_APP_SECRET', false),
45         'redirect'      => env('APP_URL') . '/login/service/github/callback',
46         'name'          => 'GitHub',
47         'auto_register' => env('GITHUB_AUTO_REGISTER', false),
48         'auto_confirm' => env('GITHUB_AUTO_CONFIRM_EMAIL', false),
49     ],
50
51     'google'   => [
52         'client_id'     => env('GOOGLE_APP_ID', false),
53         'client_secret' => env('GOOGLE_APP_SECRET', false),
54         'redirect'      => env('APP_URL') . '/login/service/google/callback',
55         'name'          => 'Google',
56         'auto_register' => env('GOOGLE_AUTO_REGISTER', false),
57         'auto_confirm' => env('GOOGLE_AUTO_CONFIRM_EMAIL', false),
58         'select_account' => env('GOOGLE_SELECT_ACCOUNT', false),
59     ],
60
61     'slack'   => [
62         'client_id'     => env('SLACK_APP_ID', false),
63         'client_secret' => env('SLACK_APP_SECRET', false),
64         'redirect'      => env('APP_URL') . '/login/service/slack/callback',
65         'name'          => 'Slack',
66         'auto_register' => env('SLACK_AUTO_REGISTER', false),
67         'auto_confirm' => env('SLACK_AUTO_CONFIRM_EMAIL', false),
68     ],
69
70     'facebook'   => [
71         'client_id'     => env('FACEBOOK_APP_ID', false),
72         'client_secret' => env('FACEBOOK_APP_SECRET', false),
73         'redirect'      => env('APP_URL') . '/login/service/facebook/callback',
74         'name'          => 'Facebook',
75         'auto_register' => env('FACEBOOK_AUTO_REGISTER', false),
76         'auto_confirm' => env('FACEBOOK_AUTO_CONFIRM_EMAIL', false),
77     ],
78
79     'twitter'   => [
80         'client_id'     => env('TWITTER_APP_ID', false),
81         'client_secret' => env('TWITTER_APP_SECRET', false),
82         'redirect'      => env('APP_URL') . '/login/service/twitter/callback',
83         'name'          => 'Twitter',
84         'auto_register' => env('TWITTER_AUTO_REGISTER', false),
85         'auto_confirm' => env('TWITTER_AUTO_CONFIRM_EMAIL', false),
86     ],
87
88     'azure'   => [
89         'client_id'     => env('AZURE_APP_ID', false),
90         'client_secret' => env('AZURE_APP_SECRET', false),
91         'tenant'       => env('AZURE_TENANT', false),
92         'redirect'      => env('APP_URL') . '/login/service/azure/callback',
93         'name'          => 'Microsoft Azure',
94         'auto_register' => env('AZURE_AUTO_REGISTER', false),
95         'auto_confirm' => env('AZURE_AUTO_CONFIRM_EMAIL', false),
96     ],
97
98     'okta' => [
99         'client_id' => env('OKTA_APP_ID'),
100         'client_secret' => env('OKTA_APP_SECRET'),
101         'redirect' => env('APP_URL') . '/login/service/okta/callback', 
102         'base_url' => env('OKTA_BASE_URL'), 
103         'name'          => 'Okta',
104         'auto_register' => env('OKTA_AUTO_REGISTER', false),
105         'auto_confirm' => env('OKTA_AUTO_CONFIRM_EMAIL', false),
106     ],
107
108     'gitlab' => [
109         'client_id'     => env('GITLAB_APP_ID'),
110         'client_secret' => env('GITLAB_APP_SECRET'),
111         'redirect'      => env('APP_URL') . '/login/service/gitlab/callback',
112         'instance_uri'  => env('GITLAB_BASE_URI'), // Needed only for self hosted instances
113         'name'          => 'GitLab',
114         'auto_register' => env('GITLAB_AUTO_REGISTER', false),
115         'auto_confirm' => env('GITLAB_AUTO_CONFIRM_EMAIL', false),
116     ],
117
118     'twitch' => [
119         'client_id' => env('TWITCH_APP_ID'),
120         'client_secret' => env('TWITCH_APP_SECRET'),
121         'redirect' => env('APP_URL') . '/login/service/twitch/callback',
122         'name'          => 'Twitch',
123         'auto_register' => env('TWITCH_AUTO_REGISTER', false),
124         'auto_confirm' => env('TWITCH_AUTO_CONFIRM_EMAIL', false),
125     ],
126
127     'discord' => [
128         'client_id' => env('DISCORD_APP_ID'),
129         'client_secret' => env('DISCORD_APP_SECRET'),
130         'redirect' => env('APP_URL') . '/login/service/discord/callback',
131         'name' => 'Discord',
132         'auto_register' => env('DISCORD_AUTO_REGISTER', false),
133         'auto_confirm' => env('DISCORD_AUTO_CONFIRM_EMAIL', false),
134     ],
135
136     'ldap' => [
137         'server' => env('LDAP_SERVER', false),
138         'dn' => env('LDAP_DN', false),
139         'pass' => env('LDAP_PASS', false),
140         'base_dn' => env('LDAP_BASE_DN', false),
141         'user_filter' => env('LDAP_USER_FILTER', '(&(uid=${user}))'),
142         'version' => env('LDAP_VERSION', false),
143         'email_attribute' => env('LDAP_EMAIL_ATTRIBUTE', 'mail'),
144         'display_name_attribute' => env('LDAP_DISPLAY_NAME_ATTRIBUTE', 'cn'),
145         'follow_referrals' => env('LDAP_FOLLOW_REFERRALS', false),
146                 'user_to_groups' => env('LDAP_USER_TO_GROUPS',false),
147                 'group_attribute' => env('LDAP_GROUP_ATTRIBUTE', 'memberOf'),
148                 'remove_from_groups' => env('LDAP_REMOVE_FROM_GROUPS',false),
149                 'tls_insecure' => env('LDAP_TLS_INSECURE', false),
150         ]
151
152 ];
Morty Proxy This is a proxified and sanitized view of the page, visit original site.