CDN server

One CDN for images. Thumbnails, logo and favicon are still saved in the backend's storage and also copied to the CDN's uploads folder.

@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

{{ $enabled ? 'Connected CDN' : 'Add CDN server' }}

@if ($enabled) Active @else Not configured @endif
@csrf @method('PUT')

Where cdn-api is deployed. Files are sent to {{ '{base_url}' }}/api/files/upload, and the panel shows images from {{ '{base_url}' }}/uploads/…

The connection is tested before saving.
@if ($enabled)

Existing images

Images saved before the CDN was added are only in local storage. Copy them over with php artisan cdn:sync.

@csrf @method('DELETE')
@endif