mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Merge pull request #731 from Gustl22/issue724
👌 IMPROVE: Doctor CLI: Harmonize negative check result descriptions (closes #724)
This commit is contained in:
commit
e5aedcb4c8
1 changed files with 18 additions and 18 deletions
|
|
@ -25,7 +25,7 @@ $cli
|
||||||
$domain = new Domain(App::getEnv('_APP_DOMAIN'));
|
$domain = new Domain(App::getEnv('_APP_DOMAIN'));
|
||||||
|
|
||||||
if(!$domain->isKnown() || $domain->isTest()) {
|
if(!$domain->isKnown() || $domain->isTest()) {
|
||||||
Console::log('🔴 Hostname has a public suffix ('.$domain->get().')');
|
Console::log('🔴 Hostname has no public suffix ('.$domain->get().')');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Console::log('🟢 Hostname has a public suffix ('.$domain->get().')');
|
Console::log('🟢 Hostname has a public suffix ('.$domain->get().')');
|
||||||
|
|
@ -34,28 +34,28 @@ $cli
|
||||||
$domain = new Domain(App::getEnv('_APP_DOMAIN_TARGET'));
|
$domain = new Domain(App::getEnv('_APP_DOMAIN_TARGET'));
|
||||||
|
|
||||||
if(!$domain->isKnown() || $domain->isTest()) {
|
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 {
|
else {
|
||||||
Console::log('🟢 CNAME target has a public suffix ('.$domain->get().')');
|
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'))) {
|
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 {
|
else {
|
||||||
Console::log('🟢 Using a unique secret key for encryption');
|
Console::log('🟢 Using a unique secret key for encryption');
|
||||||
}
|
}
|
||||||
|
|
||||||
if(App::getEnv('_APP_ENV', 'development') !== 'production') {
|
if(App::getEnv('_APP_ENV', 'development') !== 'production') {
|
||||||
Console::log('🔴 App enviornment is set for production');
|
Console::log('🔴 App environment is set for development');
|
||||||
}
|
}
|
||||||
else {
|
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')) {
|
if('enabled' !== App::getEnv('_APP_OPTIONS_ABUSE', 'disabled')) {
|
||||||
Console::log('🔴 Abuse protection is enabled');
|
Console::log('🔴 Abuse protection is disabled');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Console::log('🟢 Abuse protection is enabled');
|
Console::log('🟢 Abuse protection is enabled');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue