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.
-
Enter the name of the resource.
-
In the Content Source field, select Own Source.
-
In the Domain or IP Address field, enter the IP address or domain of your site.
-
Click Create CDN resource. 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.
-
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 dashboard, on the top menu, click Products and select CDN Resources.
-
Click Create CDN resource.
-
Enter a name for the resource. The name has no effect on the resource settings and is used only for operation in the control panel.
-
In the Content Source block, select S3 Selectel.
-
Specify the address of a public bucket of the form
*.selstorage.ruwithout 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 CDN resource. 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 6.