Create a CDN resource
A CDN resource is a set of settings that define how content will flow from the source to the CDN servers and be sent from the CDN servers to end users.
As a content source, you can specify:
- your source using the domain or IP address of the site;
- or baquet S3.
You can also duplicate an already created resource.
Your source.
S3
-
In the Control Panel, on the top menu, click Products and select CDN.
-
Click Create CDN resource.
-
Select which files you want to distribute:
- Static - compression of images, video files, JavaScript files, CSS files, etc. Text files are compressed by default using Gzip;
- or Large files - files from the content source are downloaded piecemeal using HTTP Range requests. No compression is applied on the CDN side.
-
In the Address field, enter the domain or IP address of your site.
-
Click Create. When you create a CDN resource, a default domain is automatically generated. Files that will be distributed by the CDN server will be opened using a link of the form
*.selcdn.net. You can leave the default domain or connect a personal domain.
-
If you do not already have a bucket in S3 Selectel, create a public bucket and upload files to it using the S3: Quick Start instructions.
-
In the Control Panel, on the top menu, click Products and select CDN.
-
Click Create CDN resource.
-
Select which files you want to distribute:
- Static - compression of images, video files, JavaScript files, CSS files, etc. Text files are compressed by default using Gzip;
- or Large files - files from the content source are downloaded piecemeal using HTTP Range requests. No compression is applied on the CDN side.
-
In the Address block specify the address of the public bucket
of the *.selstorage.rutype without protocol. You can view the bucket address in the control panel: in the top menu, click Products → S3 → select project → Bucket section → bucket page → Domains tab → Main domain. -
Click Create. When you create a CDN resource, a default domain will be automatically generated. Files that will be distributed by the CDN server will be opened using a link of the form
*.selcdn.net. You can leave the default domain or add a personal domain. -
Open the page of the created resource → Source tab.
-
In the Hostname block, in the Hostname field , when querying the source, specify the value you added in step 5.