I'm running a server with GitLab on it, and want to be able to use nginx for other services too (in my instance, Jenkins). I've modified the GL config to add additional vhosts as per this answer and it's all working fine.
However, I want to also set an SSL certificate with certbot, however when I run sudo certbot --nginx
, I get the following:
nginx: [error] invalid PID number "" in "/run/nginx.pid"
I presume this is because GitLab's nginx instance isn't putting a pid into the run dir like a normal nginx instance would. So, my question is either:
Can GitLab be configured to create a PID here?
... or
Can certbot be configured to look for a PID elsewhere?