SSL Let's Encrypt 127.0.0.1 / redirects

Have tried to install Let’s Encrypt certs on two ghost installs and get booted out to 127.0.0.1, with too many redirects.

Have looked at a bunch of solutions, including editing Appache config to include

RequestHeader set X-Forwarded-Proto "https"

Sites are below. I might have done the Appache config wrong, but either way, help much appreciated.

http://34.86.172.166/
http://34.86.211.188/