How to add the HTTPS protocol

At first you need to adjust DNS on CloudFlare.

Then you need to switch on all traffic caching on Cloudflare.
The icons in front of the main domain and subdomain must be active.
Switch on the SSL in the tab Crypto.
Go to the tab Page Rules and click on the button 'Create Page Rule'
Put in the name of the domain and a slash with a asterisk. Click on Add a Setting, choose SSL, then Flexibity. Click on [Save And Deploy]
If everything is doing correctly, you'll see the screen like this
And add the rule to redirect all requests from www to the main domain.
Republish your website.

If you export your project, change http:// на // in the code.
Made on