|
1 | 1 | <?php
|
2 | 2 |
|
3 |
| -/* |
4 |
| - * This file is part of Cachet. |
5 |
| - * |
6 |
| - * (c) Alt Three Services Limited |
7 |
| - * |
8 |
| - * For the full copyright and license information, please view the LICENSE |
9 |
| - * file that was distributed with this source code. |
10 |
| - */ |
11 |
| - |
12 | 3 | return [
|
13 | 4 |
|
14 | 5 | /*
|
|
30 | 21 | |
|
31 | 22 | | This is the URI path where Cachet will be accessible from.
|
32 | 23 | */
|
33 |
| - 'path' => env('CACHET_PATH', 'status'), |
| 24 | + 'path' => env('CACHET_PATH', '/'), |
34 | 25 |
|
35 | 26 | 'guard' => env('CACHET_GUARD', null),
|
36 | 27 |
|
|
42 | 33 | | This is the model that will be used to authenticate users. This model
|
43 | 34 | | must be an instance of Illuminate\Foundation\Auth\User.
|
44 | 35 | */
|
45 |
| - 'user_model' => App\Models\User::class, |
| 36 | + 'user_model' => env('CACHET_USER_MODEL', \App\Models\User::class), |
| 37 | + |
| 38 | + 'user_migrations' => env('CACHET_USER_MIGRATIONS', true), |
46 | 39 |
|
47 | 40 | /*
|
48 | 41 | |--------------------------------------------------------------------------
|
|
77 | 70 | */
|
78 | 71 | 'middleware' => [
|
79 | 72 | 'web',
|
| 73 | + \Cachet\Http\Middleware\AuthenticateRemoteUser::class, |
80 | 74 | ],
|
81 | 75 |
|
82 | 76 | 'api_middleware' => [
|
83 | 77 | 'api',
|
84 | 78 | ],
|
85 | 79 |
|
| 80 | + 'trusted_proxies' => env('CACHET_TRUSTED_PROXIES', ''), |
| 81 | + |
86 | 82 | /*
|
87 | 83 | |--------------------------------------------------------------------------
|
88 | 84 | | Cachet API Rate Limit (attempts per minute)
|
|
95 | 91 | */
|
96 | 92 | 'api_rate_limit' => env('CACHET_API_RATE_LIMIT', 300),
|
97 | 93 |
|
| 94 | + /* |
| 95 | + |-------------------------------------------------------------------------- |
| 96 | + | Cachet Beacon |
| 97 | + |-------------------------------------------------------------------------- |
| 98 | + | |
| 99 | + | Enable Cachet's telemetry. Cachet will only ever send anonymous data |
| 100 | + | to the cachethq.io domain. This enables us to understand how Cachet |
| 101 | + | is used. |
| 102 | + | |
| 103 | + */ |
98 | 104 | 'beacon' => env('CACHET_BEACON', true),
|
| 105 | + |
| 106 | + /* |
| 107 | + |-------------------------------------------------------------------------- |
| 108 | + | Cachet Docker |
| 109 | + |-------------------------------------------------------------------------- |
| 110 | + | |
| 111 | + | Determines whether Cachet is running from within a Docker instance. |
| 112 | + | |
| 113 | + */ |
| 114 | + 'docker' => env('CACHET_DOCKER', false), |
| 115 | + |
| 116 | + /* |
| 117 | + |-------------------------------------------------------------------------- |
| 118 | + | Cachet Webhooks |
| 119 | + |-------------------------------------------------------------------------- |
| 120 | + | |
| 121 | + | Configure how Cachet sends webhooks for events. |
| 122 | + | |
| 123 | + */ |
| 124 | + 'webhooks' => [ |
| 125 | + 'queue_connection' => env('CACHET_WEBHOOK_QUEUE_CONNECTION', 'default'), |
| 126 | + 'queue_name' => env('CACHET_WEBHOOK_QUEUE_NAME', 'webhooks'), |
| 127 | + |
| 128 | + 'logs' => [ |
| 129 | + 'prune_logs_after_days' => 30, |
| 130 | + ], |
| 131 | + ], |
| 132 | + |
| 133 | + /* |
| 134 | + |-------------------------------------------------------------------------- |
| 135 | + | Cachet Supported Locales |
| 136 | + |-------------------------------------------------------------------------- |
| 137 | + | |
| 138 | + | Configure which locales are supported by Cachet. |
| 139 | + | |
| 140 | + */ |
| 141 | + 'supported_locales' => [ |
| 142 | + 'de' => 'Deutsch (DE)', |
| 143 | + 'de_AT' => 'Deutsch (AT)', |
| 144 | + 'de_CH' => 'Deutsch (CH)', |
| 145 | + 'en' => 'English', |
| 146 | + 'en_GB' => 'English (UK)', |
| 147 | + 'es_ES' => 'Spanish (ES)', |
| 148 | + 'nl' => 'Nederlands', |
| 149 | + 'pt_BR' => 'Português (BR)', |
| 150 | + 'zh_CN' => '简体中文', |
| 151 | + 'zh_TW' => '繁體中文', |
| 152 | + 'ph' => 'Filipino', |
| 153 | + ], |
| 154 | + |
| 155 | + /* |
| 156 | + |-------------------------------------------------------------------------- |
| 157 | + | Cachet Demo Mode |
| 158 | + |-------------------------------------------------------------------------- |
| 159 | + | |
| 160 | + | Whether to run Cachet in demo mode. This will adjust some of the default |
| 161 | + | settings to allow Cachet to run in a demo environment. |
| 162 | + | |
| 163 | + */ |
| 164 | + 'demo_mode' => env('CACHET_DEMO_MODE', false), |
| 165 | + |
| 166 | + /* |
| 167 | + |-------------------------------------------------------------------------- |
| 168 | + | Cachet Blog Feed |
| 169 | + |-------------------------------------------------------------------------- |
| 170 | + | |
| 171 | + | This is the URI to the Cachet blog feed. This is used to display |
| 172 | + | the latest blog posts on the status page. By default, this is |
| 173 | + | set to the public Cachet blog feed. |
| 174 | + | |
| 175 | + */ |
| 176 | + 'feed' => [ |
| 177 | + 'uri' => env('CACHET_FEED_URI', 'https://blog.cachethq.io/rss'), |
| 178 | + 'cache' => env('CACHET_FEED_CACHE', 3600), |
| 179 | + ], |
| 180 | + |
99 | 181 | ];
|
0 commit comments