I have setup a wordpress website on Google cloud platform. The problem is that it returns error connection refused on https.
Initially the website was using numerical IP address. Then I forwarded my domain to the VM instance IP address using the CloudFlare DNS (I use cloudflare DNS hosting as my domain provider doesn't provide Dns hosting). Changed the WordPress URL in settings to http. The domain now points to GCP VM instance.
I have enabled SSL in Cloudflare. I have enabled always use https in Cloudflare. I have checked that the firewall in VM instance allows HTTPS traffic. I have added the domain to Google cloud as well and verified it. I have manually uploaded the SSL certificate from CloudFlare to Google Cloud and applied it to work with my domain. I have installed CloudFlare Flexible SSL plugin into my Wordpress Woocommerce website.
But none of that helps.
What could be the problem?