IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Browse Source

Even better way for initial run of certbot

master
parent
commit
3ad98dbf46
2 changed files with 11 additions and 1 deletions
  1. +0
    -1
      example/gateway/certbot/files/crontab_nobody
  2. +11
    -0
      example/gateway/focker-compose.yml

+ 0
- 1
example/gateway/certbot/files/crontab_nobody View File

@@ -1,2 +1 @@
@reboot /usr/local/bin/python3 /certbot/scripts/certbot.py >/dev/null 2>&1
@weekly /usr/local/bin/certbot renew --webroot -w /certbot/webroot --server https://127.0.11.1:14000 --no-verify-ssl -n --agree-tos >/dev/null 2>&1

+ 11
- 0
example/gateway/focker-compose.yml View File

@@ -26,6 +26,7 @@ jails:
image: nginx-http
mounts:
certbot-webroot: /certbot/webroot
ip4.addr: 127.0.12.1
certbot:
image: certbot
@@ -33,9 +34,19 @@ jails:
mounts:
certbot-data: /usr/local/etc/letsencrypt
certbot-webroot: /certbot/webroot
exec.start: |
rm -vf /usr/local/etc/letsencrypt/.ready && \
( ( /usr/local/bin/python3 /certbot/scripts/certbot.py && \
touch /usr/local/etc/letsencrypt/.ready ) & ) && \
/bin/sh /etc/rc
ip4.addr: 127.0.13.1
nginx-https:
image: nginx-https
depend: certbot
mounts:
certbot-data: /usr/local/etc/letsencrypt
exec.start: |
( until [ -f /usr/local/etc/letsencrypt/.ready ]; do sleep 1; done && \
/bin/sh /etc/rc) &
ip4.addr: 127.0.14.1

Loading…
Cancel
Save