From eab96fc35c6e0dca26cbc44aeb22ca44597bb62c Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 27 Feb 2022 01:26:02 -0700 Subject: [PATCH] Update admin diagnostics, add more configuration data to help diagnose potential issues --- .../views/admin/diagnostics/home.blade.php | 142 +++++++++++++++++- 1 file changed, 137 insertions(+), 5 deletions(-) diff --git a/resources/views/admin/diagnostics/home.blade.php b/resources/views/admin/diagnostics/home.blade.php index d4031b442..3c40099e7 100644 --- a/resources/views/admin/diagnostics/home.blade.php +++ b/resources/views/admin/diagnostics/home.blade.php @@ -1,6 +1,4 @@ -@extends('admin.partial.template') - -@include('admin.settings.sidebar') +@extends('admin.partial.template-full') @section('section')
@@ -22,16 +20,25 @@ APP_DOMAIN: {{config_cache('pixelfed.domain.app')}} + @if(function_exists('shell_exec')) +
  • + Version: + {{config('pixelfed.version')}}-{{ @shell_exec('git log --pretty="%h" -n1 HEAD') ?? 'unknown git commit' }} +
  • + @else
  • Version: {{config('pixelfed.version')}}
  • + @endif
  • PHP: {{phpversion()}}
  • @foreach([ 'bcmath', + 'gd', + 'imagick', 'ctype', 'curl', 'intl', @@ -40,10 +47,12 @@ 'openssl', 'redis' ] as $ext) + @if(!extension_loaded($ext))
  • PHP-{{$ext}}: - {{extension_loaded($ext) ? 'Installed' : 'Not installed'}} + Not installed/loaded
  • + @endif @endforeach
  • Database: @@ -58,6 +67,115 @@ Storage: {{is_writable(base_path('storage/')) ? 'Writable' : 'Not writable'}}
  • +
  • + Image Driver: + {{ config('image.driver') }} +
  • +
  • + REDIS Ping: + {{ \Illuminate\Support\Facades\Redis::command('ping') ? '✅' : '❌' }} +
  • +
  • + PHP memory_limit: + {{ ini_get('memory_limit') }} +
  • +
  • + PHP post_max_size: + {{ ini_get('post_max_size') }} +
  • +
  • + PHP upload_max_filesize: + {{ ini_get('upload_max_filesize') }} +
  • +
  • + APP Cache Driver: + {{ config_cache('cache.default') }} +
  • +
  • + APP Mail Driver: + {{ config_cache('mail.driver') }} +
  • +
  • + APP Mail Host: + {{ config_cache('mail.host') ? substr(config_cache('mail.host'), 0, 5) . str_repeat('*', strlen(config_cache('mail.host')) - 5) : 'undefined' }} +
  • + @if(config_cache('mail.driver') == 'mailgun') +
  • + APP Mailgun Domain: + {{ config_cache('services.mailgun.domain') ?? 'undefined' }} +
  • +
  • + APP Mailgun Secret: + {{ config_cache('services.mailgun.secret') ? str_repeat('*', strlen(config_cache('services.mailgun.secret'))) : 'undefined' }} +
  • + @endif + @if(config_cache('mail.driver') == 'ses') +
  • + APP SES Key: + {{ config_cache('services.ses.key') ? str_repeat('*', strlen(config_cache('services.ses.key'))) : 'undefined' }} +
  • +
  • + APP SES Secret: + {{ config_cache('services.ses.secret') ? str_repeat('*', strlen(config_cache('services.ses.secret'))) : 'undefined' }} +
  • +
  • + APP SES Region: + {{ config_cache('services.ses.region') ?? 'undefined' }} +
  • + @endif +
  • + APP Queue Driver: + {{ config_cache('queue.default') }} +
  • +
  • + APP Session Driver: + {{ config_cache('session.driver') }} +
  • +
  • + APP Session Lifetime: + {{ config_cache('session.lifetime') }} +
  • +
  • + APP Session Domain: + {{ config_cache('session.domain') }} +
  • +
  • +
    + CONFIG pixelfed: + {!! json_encode(config_cache('pixelfed'), JSON_UNESCAPED_SLASHES) !!} +
    +
  • +
  • +
    + CONFIG federation: + {!! json_encode(config_cache('federation'), JSON_UNESCAPED_SLASHES) !!} +
    +
  • +
  • + ACTIVITYPUB instance actor created: + {{ \App\Models\InstanceActor::count() ? '✅' : '❌' }} +
  • +
  • + ACTIVITYPUB instance actor cached: + {{ Cache::get(\App\Models\InstanceActor::PROFILE_KEY) ? '✅' : '❌' }} +
  • +
  • + OAUTH enabled: + {{ config_cache('pixelfed.oauth_enabled') ? '✅' : '❌' }} +
  • +
  • + OAUTH token_expiration + {{ config_cache('instance.oauth.token_expiration') }} days +
  • + +
  • + OAUTH public key exists: + {{ file_exists(storage_path('oauth-public.key')) ? '✅' : '❌' }} +
  • +
  • + OAUTH private key exists: + {{ file_exists(storage_path('oauth-private.key')) ? '✅' : '❌' }} +
  • @@ -79,6 +197,20 @@ @endsection @push('scripts') +