Configure custom domain with AWS Cloudfront

Hi all -

I’m trying to configure AWS Cloudfront to serve as the proxy to my custom obsidian domain but keep getting 502 errors. Has anyone been able to make this work successfully? I’ve been following the guides on this forum and a video on Youtube but without success. I’ve tried adjusting everything I can think of to make it work.