The original post: /r/nginx by /u/carmane02 on 2024-12-10 01:59:57.
Hi everyone, I’m having an issue with SSL configuration on Cloudflare and Nginx Proxy Manager, and I hope you can help me.
Here’s my setup:
• I created an SSL certificate on Cloudflare for the domain *mydomain.com and mydomain.com
• I uploaded the certificate to Nginx Proxy Manager, where I set up a proxy pointing to Authelia (IP: 192.168.1.207, port: 9091).
• I created a DNS A record on Cloudflare for auth.mydomain.com, which points to the public IP of my server.
• I enabled SSL on the Nginx proxy with the Cloudflare certificate, forcing SSL and configuring the proxy settings (advanced settings and headers, etc.).
The problem is that when I visit auth.mydomain.com I get the “Invalid SSL certificate” error with the code 526 from Cloudflare.
I’ve already checked a few things:
- SSL on Cloudflare: I set the SSL mode to Full (not Flexible) to ensure a secure connection between Cloudflare and my server.
- SSL certificate on Nginx: I uploaded the Cloudflare certificate and properly configured the SSL part in Nginx.
- Nginx Proxy Configuration: The proxy setup seems correct, including the forwarding headers.
I’m not sure what’s causing the issue. I’ve also checked the DNS settings and Cloudflare settings, but nothing seems to work. Does anyone have an idea what could be causing the 526 error and how to fix it?
Thanks in advance!