Skip to content

Should nginx be reloaded after a certificat has been renewed? #265

@victor-lund

Description

@victor-lund

Hello,

I am using a docker setup with the following images:

  • nginx
  • jwilder/docker-gen
  • jrcs/letsencrypt-nginx-proxy-companion

...and I'm facing issues with renewed certificates. I believe that my certificates are getting renewed properly but I don't think nginx is restarted when a certificat has been renewed.

When using a non-docker setup, I would typically use certbot together with a cron job that looks something like this:

30 2 * * * /usr/bin/certbot renew --noninteractive --renew-hook "/bin/systemctl reload nginx" >> /var/log/le-renew.log

...which reloads nginx when a certificate has been renewed.

I suspect that this functionality either isn't implemented in my setup or alternatively that it is not working properly.

Anyone out there having similar experiences or ideas how I could track down what is causing my certificates / nginx issues?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions