diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..df91287 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +certs/ diff --git a/docker-compose.yml b/docker-compose.yml index b6acc90..75824d4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,6 +18,8 @@ services: volumes: - ./certs:/etc/letsencrypt - ./html:/var/www/html - command: certonly --webroot --webroot-path=/var/www/html --email prbigoon@gmail.com --agree-tos --staging --no-eff-email -d git.evil-bird.ru +# command: certonly --webroot --webroot-path=/var/www/html --email prbigoon@gmail.com --agree-tos --no-eff-email -d git.evil-bird.ru + command: renew --webroot --webroot-path=/var/www/html + entrypoint: /bin/sh -c "trap exit TERM; while :; do certbot renew --webroot --webroot-path=/var/www/html; sleep 12h & wait $${!}; done;" depends_on: - nginx diff --git a/nginx.conf b/nginx.conf index 40e5e0b..4dde836 100644 --- a/nginx.conf +++ b/nginx.conf @@ -27,4 +27,4 @@ http { index index.html; } } -} \ No newline at end of file +}