media and assets from a CDN by setting custom URLs when Kirby is initialized. Create a CDN resource before starting the integration, and confirm the custom domain is configured.
Before editing Kirby, collect the custom domain value to put in the media and assets URLs — it typically looks like cdn.site.com:
1
Open the CDN resource
In the Gcore Customer Portal, navigate to CDN > CDN resources and open the resource.
2
Copy the custom domain
Note the custom domain shown for the resource — this is the hostname used in the Kirby
media and assets URLs.3
Confirm the DNS CNAME
Confirm that the custom domain has a CNAME record pointing to the Gcore target hostname shown in the Customer Portal (
cl-****.gcdn.co). Do not put the gcdn.co hostname in the Kirby URLs.4
Confirm SSL
Confirm the custom domain has a valid SSL certificate so assets can load over HTTPS.
1
Open index.php
Open
index.php in the site root.2
Set the media and assets URLs
Set the
media and assets URLs to the custom domain:3
Save the configuration
Save
index.php.4
Confirm the integration
Open the browser developer tools (press F12), select the Network tab, and refresh the page — media and asset files should now load from the custom domain instead of the original domain.