1
0
As always....
This commit is contained in:
CHEF-KOCH 2023-02-27 11:46:42 +01:00
parent d8cf7ff89f
commit 915273bc64

View File

@ -1,4 +1,4 @@
# Lets Encrypt certificates without exposing port 80 and 443 trough DNS record # Lets Encrypt certificates without exposing port 80 and 443, trough DNS record
## Instructions on SSH end ## Instructions on SSH end
@ -29,7 +29,7 @@ Hit enter.
- PRIVKey: /etc/letsencrypt/live/yourdomain.org//privkey.pem - PRIVKey: /etc/letsencrypt/live/yourdomain.org//privkey.pem
## Add cron job for reneww process and restart Nginx ## Add cron job for renewable process and restart Nginx
- crontab -e - crontab -e
- #@weekly /usr/bin/certbot renew > /dev/null 2>&1 - #@weekly /usr/bin/certbot renew > /dev/null 2>&1
- @weekly /usr/bin/certbot renew --renew-hook 'systemctl restart nginx.service' > /dev/null 2>&1 - @weekly /usr/bin/certbot renew --renew-hook 'systemctl restart nginx.service' > /dev/null 2>&1