My domain is: greenlane.pricklythistle.co.uk
My web server is (include version): nestjs 7 (express)
The operating system my web server runs on is (include version): Raspbian Buster
I can login to a root shell on my machine (yes or no, or I don’t know): yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no
The version of my client is (e.g. output of
certbot --version or
certbot-auto --version if you’re using Certbot): 0.31.0
I have got my certificate setup and as far as I can tell it will be automatically renewed (when I type
systemctl status certbot.timer I see a message saying it will run twice a day). After it has renewed I think that I need to restart my server so I need a hook.
There are instructions here about how to run renew with a post hook when running on the command line. There are also instructions about adding files to the config directory to run as a post hook.
It seems that I want to add files to the config directory that will run when the certificate is renewed - these scripts will run for all domains though. Ideally I want to only restart the appropriate webserver for whatever certificate has been renewed.
How do I go about doing that?