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 got created 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.
If you take the time to take a quick look or recognize this issue, thanks a lot!
I believe nginx is one of the rare apps that wants to run as root, not as the apps user.
So try switching it from user 568 to either 0 or 1000 (can’t remember which uid relates to root in truenas)
First, presuming you’re using the TrueNAS app, you’re using Nginx Proxy Manager, not Nginx–the former is a completely different product (though it does using Nginx under the hood).
Thank you! Made the change to 0, but it didn’t change anything unfortunately, except that now, it deploys much more quickly.
I still get the warning: useradd warning: npm's uid 0 outside of the UID_MIN 1000 and UID_MAX 60000 range.
Thanks for clarifying. Yes I checked the doc and couldn’t find my issue. I also posted on their subreddit to try and get support from the nginx community as well. That’s why I came here though : I hope that someone with more experience on Nginx proxy manager on truenas knows about this issue.
I’ll try, but UID 1000 doesn’t exist on my nas. I created a user with full admin privileges in the UID range, but it takes a long time to deploy the app without root.