# CDN Configuration

BeikeShop can configure CDN URL in Backstage-System Settings-Store Settings

img.png

First, you need to apply for a CDN domain name. Take Alibaba Cloud as an example:

1.Log in to the CDN console, in the left navigation, click Domain Management and click Add Domain

img.png

Complete the configuration of basic information and business information. Note: When adding a new domain name in the CDN console for the first time, you need to complete the domain name ownership verification (you can complete the verification according to the prompts)

img.png

2.Click Add Source Station Information and complete the following configuration

img.png

img.png

After completing the source site configuration, click Next to enter the configuration phase. You can complete the recommended configuration according to actual business needs.

3.On the domain name management page of the CDN console, copy the CNAME record value corresponding to the acceleration domain name, and configure the CNAME on the Cloud Resolution DNS console. Verify whether the CNAME configuration is effective.

img.png

4.Setting up caching

img.png

5.Configuring HTTPS Certificate

img.png

6.Configure the CDN domain name to the beikeshop backend and click Save

img.png

Front desk access as shown in the figure

img.png

# CF Configuration

1.Visit: https://dash.cloudflare.com/ (opens new window), register an account, and log in

2.Add a site and fill in the domain name

img.png

Select free and click the Continue button (you can choose a suitable plan according to your needs)

img.png

3.Add a record, fill in the domain name and server IP, click Save, and continue

img.png

4.Add CloudFlare name server and modify the DNS of the domain name (need to change the DNS at the domain name provider, Alibaba Cloud is used as an example below)

img.png

(1)Log in to Alibaba Cloud, enter the domain name list, and click the "Manage" button on the right

img.png

(2)Click the Modify DNS Servers button

img.png

(3)Change to Cloudflare name server and click OK

img.png

5.Go back to CF, click Continue, and complete the following operations (as shown in the figure)

img.png

img.png

img.png

img.png

6.You can click the button to check the name server to check whether the domain name is resolved (you need to wait for the DNS resolution to take effect)

img.png

  • After the above configuration is completed, the beikeshop plug-in market may have page turning problems that are unresponsive

CDN_problem

There are two solutions, as follows:

1.SSL/TLS encryption mode set to Full or Full (Strict)

CDN_ways

2.Set APP_FORCE_HTTPS=true in the .env file in the root directory

CDN_ways