1.Using cert from cloudflare
2.Set your domain , ip and enable cloudflare proxied
3.Go to your web > Setting
– Enter your domain to WordPress Address and Site Address
4.ssh to your wordpress instances edit file wp-config.php
sudo -i
vi /var/www/wordpress/wp-config.php
5.Insert command at line 2 and save
$_SERVER[‘HTTPS’] = ‘on’;
This is Result of file wp-config.php
6.Open browser and go to https://yourdomain