I thought I had this right, but no. I am trying to set-up automatic certificate renewals according to the instructions found here (final step):
Here is my ssl-renew file
#!/bin/bash
COMPOSE="/usr/bin/docker-compose --no-ansi"
DOCKER="/usr/bin/docker"
cd /home/weilidma/dsp-ui
$COMPOSE run nginx renew && $COMPOSE kill -s SIGHUP nginx
$DOCKER system prune -af
and here is a partial email I am receiving from Certbot:
[ Note: This message is from the Let's Encrypt staging environment. It likely is not relevant to any live web site. ]
You issued a testing cert (not a live one) from Let's Encrypt staging environment. This mail takes the place of what would normally be a renewal reminder, but instead is demonstrating delivery of renewal notices. Have a nice day!
We recommend renewing certificates automatically when they have a third of their total lifetime left. For Let's Encrypt's current 90-day certificates, that means renewing 30 days before expiration. See https://letsencrypt.org/docs/integration-guide/ for details.
My domain is:
I ran this command:
The instructions specify the ssl-renew file should reference certbot in the line starting with $COMPOSE as shown below, but in that case, I receive an email telling me that the certificate is about to expire.
#!/bin/bash
COMPOSE="/usr/bin/docker-compose --no-ansi"
DOCKER="/usr/bin/docker"
cd /home/weilidma/dsp-ui
$COMPOSE run certbot renew && $COMPOSE kill -s SIGHUP nginx
$DOCKER system prune -af
It produced this output:
My web server is (include version):
Nodejs
The operating system my web server runs on is (include version):
Ubuntu 20
My hosting provider, if applicable, is:
Digital Ocean
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):