Last active
March 23, 2024 11:18
-
-
Save beenotung/3822eeb8ef20c8c246a176529ed3f7a0 to your computer and use it in GitHub Desktop.
crontab to auto renew https cert with certbot and nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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