Getting 'ERR_TOO_MANY_REDIRECTS' in browser when trying to access Wordpress website with Nginx

Hey it was set to default settings. But then I have another website there in CF and followed its settings and enabled http to https. And now it's working. Weird.