mirror of
https://github.com/netbirdio/dashboard.git
synced 2026-01-26 01:21:04 +00:00
@@ -13,10 +13,10 @@ fi
|
||||
# this also updates the nginx config file with new SSL entries
|
||||
certbot -n --nginx --agree-tos --email ${LETSENCRYPT_EMAIL} -d ${LETSENCRYPT_DOMAIN} --https-port ${NGINX_SSL_PORT}
|
||||
# Add cron job file
|
||||
cat <<EOF >/etc/crontabs/certbot
|
||||
cat <<EOF >/etc/crontabs/root
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||
|
||||
0 */12 * * * root certbot -q renew --nginx --https-port ${NGINX_SSL_PORT}
|
||||
0 */12 * * * certbot -q renew --nginx --https-port ${NGINX_SSL_PORT}
|
||||
EOF
|
||||
# start cron daemon
|
||||
supervisorctl start cron
|
||||
|
||||
@@ -23,7 +23,7 @@ logfile_maxbytes=0
|
||||
loglevel=warn
|
||||
|
||||
[program:cron]
|
||||
command=crond -f
|
||||
command=crond -f -d 8
|
||||
user=root
|
||||
priority=101
|
||||
numprocs=1
|
||||
|
||||
Reference in New Issue
Block a user