Error code 522 on my self-hosted Nextcloud application on TrueNAS server

What is the name of the domain?

mrazik-home.hu

What is the error number?

522

What is the error message?

Connection timed out

What is the issue you’re encountering

I have installed Nextcloud application on my TrueNAS system on a home server / self-hosted with the recommended settings and default ports. I also configured Nginx proxy manager with the recommended settings and default ports. I added the SSL certificate with the help of Cloudflare api token. I also run a DNS updater container on my system which updates my dynamic IP address on Cloudflare DNS records’ page for the IP addresses. No matter what I do I’m still getting the 522 error code when I try to open Nexcloud.

What feature, service or problem is this related to?

DNS not responding/updating

Screenshot of the error

The error message is the same if type http or https.

Does it work when not proxied by Cloudflare?

Yes, it seems working when not proxied.
What should I do?

Are you verifying that from somewhere other than the local network you have the device installed on?

1 Like

Yes, I have checked from cellular 4G and it’s connecting from there, too. I used incognito mode.

What settings do I need to get more security but a working application at the same time? With the proxied mode my application does not work.
Thank you in advance.

  1. Ensure you are using the Full (Strict) SSL mode on Cloudflare.

  2. If that doesn’t fix your issue, can you share your domain and set it to DNS-Only for testing?

I have set the current encryption mode: Full (strict) and proxy status back to proxied as you @Laudian suggested. It seems this solved my problem.
Thank you very much.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.