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') +