To integrate CMS Kernel Video Sharing (KVS) and AnycastCDN, you need to follow a few simple steps:
In the BlazingCDN control panel, go to the AnycastCDN section and click on the “Create New pull zone” button. You can also press Create CDN in the top of your screen:
The next dialog box prompts you to select a content source, that is, where the original files will be taken from for placement in the CDN and subsequent return from it. In this case, we are interested in the main domain as origin:
At the third step, we have to specify the main name of our domain, the name “CDN Resource” and an alternative subdomain for which the content will be served. In our case, the main domain name is domain.com, the name “CDN Resource” is kvs_domain.com and the custom domain is acdn.domain.com:
In order to be able to serve content from the “user domain”, it must be sent through the creation of a DNS record with the CNAME type to the technical domain, which can be found in the “System domain” field.
When „Pull zone” has become active, and the CNAME for our custom domain is directed to the technical domain of the service itself, you can start setting up the site itself. To enable delivery with AnycastCDN, it is in the admin/include
/ setup.php file after the line:
$ config [‘project_url’] = “http://domain.com”;
$ config [‘project_url_cdn’] = “http://blazingcdn.domain.com”;
this will add a new variable to the CMS with the alternate domain value.
Now, if we need, for example, video screenshots for a video to be given from CDN, then we replace the name of the project_url variable with project_url_cdn, for example:
– $ config [‘content_url_videos_screenshots’] = “$ config [project_url] / contents / videos_screenshots”;
+ $ config [‘content_url_videos_screenshots’] = “$ config [project_url_cdn] / contents / videos_screenshots”;
Save the file and reload the page, preferably being logged into the administrative part of the site, so as not to receive data from the cache.
By default, the file will be saved to the CDN after the first access to it and will be stored there for 2 days.