Closed toddpadwick closed 5 years ago
I had the same error – until I added this (with the correct handle) to volumes.php Not sure why it has to be duplicated across the asset fields, and volumes.php – or which value it prioritises.
return [ 'mySpacesVolumeHandle' => [ 'hasUrls' => true, 'url' => 'https://my-spaces-bucket.ams3.digitaloceanspaces.com/', 'keyId' => getenv('SPACES_API_KEY'), 'secret' => getenv('SPACES_SECRET'), 'endpoint' => getenv('SPACES_ENDPOINT'), 'region' => getenv('SPACES_REGION'), 'bucket' => getenv('SPACES_BUCKET'), ], ];
@toddpadwick @benjaminleonard I've added support for aliases and env variables in #5, hopefully it'll be merged soon!
The original error was due to the volume driver not parsing aliases. This has been added in v1.1.0, thanks to @Tam.
Ah I see... excellent, thanks @Tam and @aelvan :)
Trying to set up spaces but I can't seem to get it to work. I have the following .env variables set up:
I then have the following alias' setup:
and finally here is a screenshot of my volume set up:
Im new to using a CDN for assets so I've probably made an obvious mistake but any help would be really appreciated :)