522 when turning on proxy, successful connection when using DNS only

I have a domain with A records pointing to my home server for a web game. When I use DNS only mode, I can connect as expected. Once I turn on proxying, I get a 522. Any ideas?

For reference, while I do generally want proxy on for protection, I also would like to implement zero trust in front of the site for Discord verification. My zero trust app is functioning just fine when I apply it to another domain I have set up, so I know that's not the issue.
Was this page helpful?