Moved Permanently. Redirecting to https://XXXXX

Looks like I’m having related issue: https://forum.ghost.org/t/http-x-forwarded-proto-not-used-by-all-requests

i.e. when i change the http to https in the json config (url variable) i see the same Moved Permanently status and infinite redirect loop in Chrome.