Hi all
I have this project on October 3 that I just deployed to an AWS elasticbean server
Ive configured it to use S3 for storage and after a few tries, I got it working 100% except for one thing: if I go into modules, in the backend, the thumbnails for any images are broken
The admin is trying to load them like this:
https://[bucker-url]/media/resize/190_190_0_0_crop/img_747c9180196cfe41ac45900080bea7e9.png
Which is correct. But I checked the bucket and those thumbnails are actually being created on:
https://[bucker-url]/resize/190_190_0_0_crop/img_747c9180196cfe41ac45900080bea7e9.png
Which is wrong, its supposed to be inside media/
I got media in config/filesystems.php set like this:
'media' => [
'driver' => env('FILESYSTEM_DRIVER', 'local'),
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION', 'us-west-1'),
'bucket' => env('AWS_BUCKET'),
'root' => env('STORAGE_MEDIA_PATH', '/'),
'url' => env('STORAGE_MEDIA_URL', '/storage/app/media'),
'visibility' => 'public',
'throw' => false,
],
.env:
AWS_BUCKET=[bucket-name]
STORAGE_MEDIA_URL=https://[bucker-url]/media
STORAGE_MEDIA_PATH=media/
AWS_URL=[bucker-url]
FILESYSTEM_DRIVER=s3
FILESYSTEM_CLOUD=s3
STORAGE_DISK=s3
It seems correct, upload is working, the files are loading on the site itself. Is just those thumbs in the modules are of the backend that are broken
Any clue why? Any help will be much appreciated