Files
cachet-docker/config/cachet.php
2025-05-13 09:37:59 +00:00

191 lines
6.1 KiB
PHP

<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return [
/*
|--------------------------------------------------------------------------
| Cachet Enabled
|--------------------------------------------------------------------------
|
| This option determines if Cachet is enabled. If Cachet is not enabled,
| the status page will not be accessible. This is useful when you need
| to disable the status page for maintenance or other reasons.
|
*/
'enabled' => env('CACHET_ENABLED', true),
/*
|--------------------------------------------------------------------------
| Cachet Path
|--------------------------------------------------------------------------
|
| This is the URI path where Cachet will be accessible from.
*/
'path' => env('CACHET_PATH', '/'),
'guard' => env('CACHET_GUARD', null),
/*
|--------------------------------------------------------------------------
| The User Model.
|--------------------------------------------------------------------------
|
| This is the model that will be used to authenticate users. This model
| must be an instance of Illuminate\Foundation\Auth\User.
*/
'user_model' => env('CACHET_USER_MODEL', \App\Models\User::class),
'user_migrations' => env('CACHET_USER_MIGRATIONS', true),
/*
|--------------------------------------------------------------------------
| Cachet Domain
|--------------------------------------------------------------------------
|
| This is the domain where Cachet will be accessible from.
|
*/
'domain' => env('CACHET_DOMAIN'),
/*
|--------------------------------------------------------------------------
| Cachet Title
|--------------------------------------------------------------------------
|
| This is the title of the status page. By default, this will be the name
| of your application.
|
*/
'title' => env('CACHET_TITLE', env('APP_NAME').' - Status'),
/*
|--------------------------------------------------------------------------
| Cachet Middleware
|--------------------------------------------------------------------------
|
| This is the middleware that will be applied to the status page. By
| default, the "web" middleware group will be applied, which means
| that the status page will be accessible by anyone.
|
*/
'middleware' => [
'web',
],
'api_middleware' => [
'api',
],
'trusted_proxies' => env('CACHET_TRUSTED_PROXIES', ''),
/*
|--------------------------------------------------------------------------
| Cachet API Rate Limit (attempts per minute)
|--------------------------------------------------------------------------
|
| This is the rate limit for the Cachet API. By default, the API is rate
| limited to 300 requests a minute (or 5 requests a second). You can
| adjust the limit as needed by your application.
|
*/
'api_rate_limit' => env('CACHET_API_RATE_LIMIT', 300),
/*
|--------------------------------------------------------------------------
| Cachet Beacon
|--------------------------------------------------------------------------
|
| Enable Cachet's telemetry. Cachet will only ever send anonymous data
| to the cachethq.io domain. This enables us to understand how Cachet
| is used.
|
*/
'beacon' => env('CACHET_BEACON', true),
/*
|--------------------------------------------------------------------------
| Cachet Docker
|--------------------------------------------------------------------------
|
| Determines whether Cachet is running from within a Docker instance.
|
*/
'docker' => env('CACHET_DOCKER', false),
/*
|--------------------------------------------------------------------------
| Cachet Webhooks
|--------------------------------------------------------------------------
|
| Configure how Cachet sends webhooks for events.
|
*/
'webhooks' => [
'queue_connection' => env('CACHET_WEBHOOK_QUEUE_CONNECTION', 'default'),
'queue_name' => env('CACHET_WEBHOOK_QUEUE_NAME', 'webhooks'),
'logs' => [
'prune_logs_after_days' => 30,
],
],
/*
|--------------------------------------------------------------------------
| Cachet Supported Locales
|--------------------------------------------------------------------------
|
| Configure which locales are supported by Cachet.
|
*/
'supported_locales' => [
'de' => 'Deutsch (DE)',
'de_AT' => 'Deutsch (AT)',
'de_CH' => 'Deutsch (CH)',
'en' => 'English',
'en_GB' => 'English (UK)',
'es_ES' => 'Spanish (ES)',
'ko' => '한국어',
'nl' => 'Nederlands',
'ph' => 'Filipino',
'pt_BR' => 'Português (BR)',
'zh_CN' => '简体中文',
'zh_TW' => '繁體中文',
],
/*
|--------------------------------------------------------------------------
| Cachet Demo Mode
|--------------------------------------------------------------------------
|
| Whether to run Cachet in demo mode. This will adjust some of the default
| settings to allow Cachet to run in a demo environment.
|
*/
'demo_mode' => env('CACHET_DEMO_MODE', false),
/*
|--------------------------------------------------------------------------
| Cachet Blog Feed
|--------------------------------------------------------------------------
|
| This is the URI to the Cachet blog feed. This is used to display
| the latest blog posts on the status page. By default, this is
| set to the public Cachet blog feed.
|
*/
'feed' => [
'uri' => env('CACHET_FEED_URI', 'https://blog.cachethq.io/rss'),
'cache' => env('CACHET_FEED_CACHE', 3600),
],
];