mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update self-diagnosis checks
This commit is contained in:
parent
ebbbb4f9e6
commit
03f808c744
1 changed files with 103 additions and 0 deletions
103
config/self-diagnosis.php
Normal file
103
config/self-diagnosis.php
Normal file
|
@ -0,0 +1,103 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
|
||||||
|
/*
|
||||||
|
* A list of environment aliases mapped to the actual environment configuration.
|
||||||
|
*/
|
||||||
|
'environment_aliases' => [
|
||||||
|
'prod' => 'production',
|
||||||
|
'live' => 'production',
|
||||||
|
'local' => 'development',
|
||||||
|
],
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Common checks that will be performed on all environments.
|
||||||
|
*/
|
||||||
|
'checks' => [
|
||||||
|
\BeyondCode\SelfDiagnosis\Checks\AppKeyIsSet::class,
|
||||||
|
\BeyondCode\SelfDiagnosis\Checks\CorrectPhpVersionIsInstalled::class,
|
||||||
|
\BeyondCode\SelfDiagnosis\Checks\DatabaseCanBeAccessed::class => [
|
||||||
|
'default_connection' => true,
|
||||||
|
'connections' => [],
|
||||||
|
],
|
||||||
|
\BeyondCode\SelfDiagnosis\Checks\DirectoriesHaveCorrectPermissions::class => [
|
||||||
|
'directories' => [
|
||||||
|
storage_path(),
|
||||||
|
base_path('bootstrap/cache'),
|
||||||
|
],
|
||||||
|
],
|
||||||
|
\BeyondCode\SelfDiagnosis\Checks\EnvFileExists::class,
|
||||||
|
\BeyondCode\SelfDiagnosis\Checks\LocalesAreInstalled::class => [
|
||||||
|
'required_locales' => [
|
||||||
|
'en_US',
|
||||||
|
PHP_OS === 'Darwin' ? 'en_US.UTF-8' : 'en_US.utf8',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
\BeyondCode\SelfDiagnosis\Checks\MaintenanceModeNotEnabled::class,
|
||||||
|
\BeyondCode\SelfDiagnosis\Checks\MigrationsAreUpToDate::class,
|
||||||
|
\BeyondCode\SelfDiagnosis\Checks\PhpExtensionsAreInstalled::class => [
|
||||||
|
'extensions' => [
|
||||||
|
'openssl',
|
||||||
|
'PDO',
|
||||||
|
'mbstring',
|
||||||
|
'tokenizer',
|
||||||
|
'xml',
|
||||||
|
'ctype',
|
||||||
|
'json',
|
||||||
|
'redis',
|
||||||
|
'bcmath',
|
||||||
|
'curl',
|
||||||
|
'exif',
|
||||||
|
'iconv',
|
||||||
|
'intl',
|
||||||
|
'zip'
|
||||||
|
],
|
||||||
|
'include_composer_extensions' => true,
|
||||||
|
],
|
||||||
|
\BeyondCode\SelfDiagnosis\Checks\RedisCanBeAccessed::class => [
|
||||||
|
'default_connection' => true,
|
||||||
|
'connections' => [],
|
||||||
|
],
|
||||||
|
\BeyondCode\SelfDiagnosis\Checks\StorageDirectoryIsLinked::class,
|
||||||
|
],
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Environment specific checks that will only be performed for the corresponding environment.
|
||||||
|
*/
|
||||||
|
'environment_checks' => [
|
||||||
|
'development' => [
|
||||||
|
\BeyondCode\SelfDiagnosis\Checks\ComposerWithDevDependenciesIsUpToDate::class,
|
||||||
|
\BeyondCode\SelfDiagnosis\Checks\ConfigurationIsNotCached::class,
|
||||||
|
\BeyondCode\SelfDiagnosis\Checks\RoutesAreNotCached::class,
|
||||||
|
\BeyondCode\SelfDiagnosis\Checks\ExampleEnvironmentVariablesAreUpToDate::class,
|
||||||
|
],
|
||||||
|
'production' => [
|
||||||
|
\BeyondCode\SelfDiagnosis\Checks\ComposerWithoutDevDependenciesIsUpToDate::class,
|
||||||
|
\BeyondCode\SelfDiagnosis\Checks\ConfigurationIsCached::class,
|
||||||
|
\BeyondCode\SelfDiagnosis\Checks\DebugModeIsNotEnabled::class,
|
||||||
|
\BeyondCode\SelfDiagnosis\Checks\PhpExtensionsAreDisabled::class => [
|
||||||
|
'extensions' => [
|
||||||
|
'xdebug',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
\BeyondCode\SelfDiagnosis\Checks\RoutesAreCached::class,
|
||||||
|
//\BeyondCode\SelfDiagnosis\Checks\ServersArePingable::class => [
|
||||||
|
// 'servers' => [
|
||||||
|
// 'www.google.com',
|
||||||
|
// ['host' => 'www.google.com', 'port' => 8080],
|
||||||
|
// '8.8.8.8',
|
||||||
|
// ['host' => '8.8.8.8', 'port' => 8080, 'timeout' => 5],
|
||||||
|
// ],
|
||||||
|
//],
|
||||||
|
//\BeyondCode\SelfDiagnosis\Checks\SupervisorProgramsAreRunning::class => [
|
||||||
|
// 'programs' => [
|
||||||
|
// 'horizon',
|
||||||
|
// ],
|
||||||
|
// 'restarted_within' => 300,
|
||||||
|
//],
|
||||||
|
//\BeyondCode\SelfDiagnosis\Checks\HorizonIsRunning::class,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
|
||||||
|
];
|
Loading…
Reference in a new issue