Add the following to your config.php. Make sure that this is inside the array. Adjust the data within the apostrophe with your data:
'cdn' => [
'backend' => 'local', /* Change this after the transfer to bunnycdn */
'adapters' => [
'bunnycdn' =>
[
'type' => 'bunnycdn',
'mediaUrl' => 'https://PULLZONE.b-cdn.net/', /* This can also be a self-defined subdomain deposited with bunnyCDN */
'apiUrl' => 'https://storage.bunnycdn.com/STORAGEZONENAME/',
'apiKey' => 'secret-api-key' /* corresponds to Password */
]
]
]
Example:
return array (
'db' =>
[
'host' => 'localhost',
'port' => '3306',
'username' => 'user',
'password' => 'secret',
'dbname' => 'dbname',
],
'cdn' => [
'backend' => 'local', /* Change this after the transfer to bunnycdn */
'adapters' => [
'bunnycdn' =>
[
'type' => 'bunnycdn',
'mediaUrl' => 'https://testzone.b-cdn.net/',
'apiUrl' => 'https://storage.bunnycdn.com/teststor/',
'apiKey' => 'secret-api-keyXYZ'
]
]
]
);