1
0
Fork 0
mirror of synced 2024-09-30 09:18:14 +13:00

👌 IMPROVE: Doctor CLI: Harmonize negative check result descriptions (closes #724)

This commit is contained in:
Gustl22 2020-11-05 12:05:59 +01:00
parent 1ddc246e0f
commit 4b021dba7a

View file

@ -25,7 +25,7 @@ $cli
$domain = new Domain(App::getEnv('_APP_DOMAIN'));
if(!$domain->isKnown() || $domain->isTest()) {
Console::log('🔴 Hostname has a public suffix ('.$domain->get().')');
Console::log('🔴 Hostname has no public suffix ('.$domain->get().')');
}
else {
Console::log('🟢 Hostname has a public suffix ('.$domain->get().')');
@ -34,28 +34,28 @@ $cli
$domain = new Domain(App::getEnv('_APP_DOMAIN_TARGET'));
if(!$domain->isKnown() || $domain->isTest()) {
Console::log('🔴 CNAME target has a public suffix ('.$domain->get().')');
Console::log('🔴 CNAME target has no public suffix ('.$domain->get().')');
}
else {
Console::log('🟢 CNAME target has a public suffix ('.$domain->get().')');
}
if(App::getEnv('_APP_OPENSSL_KEY_V1') === 'your-secret-key' || empty(App::getEnv('_APP_OPENSSL_KEY_V1'))) {
Console::log('🔴 Using a unique secret key for encryption');
Console::log('🔴 Not using a unique secret key for encryption');
}
else {
Console::log('🟢 Using a unique secret key for encryption');
}
if(App::getEnv('_APP_ENV', 'development') !== 'production') {
Console::log('🔴 App enviornment is set for production');
Console::log('🔴 App environment is set for development');
}
else {
Console::log('🟢 App enviornment is set for production');
Console::log('🟢 App environment is set for production');
}
if('enabled' !== App::getEnv('_APP_OPTIONS_ABUSE', 'disabled')) {
Console::log('🔴 Abuse protection is enabled');
Console::log('🔴 Abuse protection is disabled');
}
else {
Console::log('🟢 Abuse protection is enabled');