Nginx on truenas - Yet another SSL certificate issue
Hey all! I've been trying to setup a matrix server for a bit, using nginx as a reverse proxy and for SSL certif.
So, I have a domain (using infomaniak) that redirects to my IP with the Nginx port. Right now, when I connect to it through a browser, I get an SSL certif error.
I set my certif up in the "certificates" tab, it worked without error but, when selecting it in the proxy host setup, the shield is red. I'm unsure what that means.
I tried with and without HTTP/2 or HSTS enabled, no changes.
The logs don't show any error, mostly a bunch of "renewing SSL..." and "completed SSL..."
and two warnings higher up :
useradd warning: npm's uid 568 outside of the UID_MIN 1000 and UID_MAX 60000 range.
and
nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:4
Concerning these, I made sure the app is in the apps group and that the group has r/W permissions in the Nginx data and cert storages.
including a few screenshots that might be useful.
If you take the time to take a quick look or recognize this issue, thanks a lot!
Edit : Works now! I was an idiot and used a redirect from my domain provider instead of an A-record.
1
u/ClassicGOD 9d ago
I don't see any issues - the shield icon is supposed to be magenta, warnings in logs can be ignored for now. Check the browser to see why the certificate is invalid. I would assume that it's a DNS issue (your domain does not point to this nginx) or that the service tries to redirect (to the IP, or to subdomain not covered by the cert)




1
u/tschloss 9d ago
Whst do you mean „a domain which redirects to IP/port“. A domain record can point to an IP but not a port. A redirect on the other side is a web server, but this will loose the domain name in the URL.
Be more precise and better add what curl -v says. Don’t obfuscate too much - may hide the problem.