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!
소스 검색

Even better way for initial run of certbot

master
부모
커밋
3ad98dbf46
2개의 변경된 파일11개의 추가작업 그리고 1개의 파일을 삭제
  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 파일 보기

@@ -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 파일 보기

@@ -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

불러오는 중...
취소
저장