Skip to content

Instantly share code, notes, and snippets.

@beenotung
Last active March 23, 2024 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beenotung/3822eeb8ef20c8c246a176529ed3f7a0 to your computer and use it in GitHub Desktop.
Save beenotung/3822eeb8ef20c8c246a176529ed3f7a0 to your computer and use it in GitHub Desktop.
crontab to auto renew https cert with certbot and nginx
# Launch the editor: sudo crontab -e
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
M H * * * certbot renew --post-hook "service nginx restart"
# M should be a random number range: 0..59
# H should be a random number range: 0..23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment