To integrate CMS Kernel Video Sharing (KVS) with AnycastCDN you need to follow some simple steps:
- In the websa panel, follow to AnycastCDN section and press the button «Create New CDN Resource»
- In the window select the content source to use as CDN content. In this case, you need to select the origin domain.
- On this step you need to set the origin domain name, “CDN Resource” name and alternate subdomain. For example (scree) origin domain name – domain.com, “CDN Resource” name — kvs_domain.com, user domain – acdn.domain.com
- For using “User domain” you need to set CNAME to technical CDN domain – “System domain”.
- After “CDN Resource” is activated, and CNAME for custom domain follow to technical aCDN domain, you can get a KVS setup. In file admin/include/setup.php after string:
$config['project_url']="http://domain.com";
add:
$config['project_url_cdn']="http://acdn.domain.com";
This will add a new CMS variable with alter domain name.
If you need for example distribute video screenshots via aCDN, then replace project_url to project_url_cdn:
- $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 site administer panel to prevent load cached content.
By default aCDN stores files after the first download from the site and keeps on aCDN 2 days.