Skip to content

Commit 5de867b

Browse files
committed
Update cachet config
1 parent 1c34a72 commit 5de867b

File tree

1 file changed

+93
-11
lines changed

1 file changed

+93
-11
lines changed

config/cachet.php

Lines changed: 93 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
<?php
22

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-
123
return [
134

145
/*
@@ -30,7 +21,7 @@
3021
|
3122
| This is the URI path where Cachet will be accessible from.
3223
*/
33-
'path' => env('CACHET_PATH', 'status'),
24+
'path' => env('CACHET_PATH', '/'),
3425

3526
'guard' => env('CACHET_GUARD', null),
3627

@@ -42,7 +33,9 @@
4233
| This is the model that will be used to authenticate users. This model
4334
| must be an instance of Illuminate\Foundation\Auth\User.
4435
*/
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),
4639

4740
/*
4841
|--------------------------------------------------------------------------
@@ -77,12 +70,15 @@
7770
*/
7871
'middleware' => [
7972
'web',
73+
\Cachet\Http\Middleware\AuthenticateRemoteUser::class,
8074
],
8175

8276
'api_middleware' => [
8377
'api',
8478
],
8579

80+
'trusted_proxies' => env('CACHET_TRUSTED_PROXIES', ''),
81+
8682
/*
8783
|--------------------------------------------------------------------------
8884
| Cachet API Rate Limit (attempts per minute)
@@ -95,5 +91,91 @@
9591
*/
9692
'api_rate_limit' => env('CACHET_API_RATE_LIMIT', 300),
9793

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+
*/
98104
'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+
99181
];

0 commit comments

Comments
 (0)