random- collection of un-sorted bollocks |
git clone git://git.acid.vegas/random.git |
Log | Files | Refs | Archive |
certbotset.sh (576B)
1 location ~ /.well-known/acme-challenge/ { 2 allow all; 3 root /var/www/html; # This should point to the webroot of your site 4 } 5 6 sudo nano /etc/systemd/system/certbot-renewal.service 7 [Unit] 8 Description=Certbot Renewal 9 10 [Service] 11 Type=oneshot 12 ExecStart=/usr/bin/certbot renew --webroot -w /var/www/html --quiet 13 14 sudo nano /etc/systemd/system/certbot-renewal.timer 15 [Unit] 16 Description=Run certbot renewal daily 17 18 [Timer] 19 OnCalendar=daily 20 Persistent=true 21 22 [Install] 23 WantedBy=timers.target 24 25 26 sudo systemctl enable certbot-renewal.timer 27 sudo systemctl start certbot-renewal.timer