Hi,
I’m trying to make my Nextcloud instance publicly available by using Nginx Proxy Manager and Cloudflare. I have mainly used this guide from Dan’s Wiki.
I am able to reach my applications (Nextcloud and Photoprism) only if I disable the Force SSL setting in NPM and set the SSL/TLS setting in Cloudflare to flexible. The browser says the connection is secure, but my impression is that Force SSL should be on and the Cloudflare setting should be “Full (strict)”.
How can I get this to work with the correct SSL settings?
Troubleshooting info:
With Cloudflare set to Full I get a code 521error (Web server is down).
With Cloudflare set to Flexible and Force SSL results in: ERR_TOO_MANY_REDIRECTS
Acquiring Let’s encrypt certificates in NPM gives no error.
The “Certificate ID” option in the apps is left blank.
Sorry for the late reply.
I never managed to figure this out, so I moved to a Cloudflare tunnel. I’m sure there are negative sides of using tunnels, but at least it was very simple to set up.
Thanks for the reply! Sorry you never got your issue solved!
My issue was that my Router had somehow started blocking port 443 again, even though I was forwarding it. Re-adding the port forward rule fixed my issue.
Just for any other poor soul that finds themselves here with the issue, maybe the will help: