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

正在加载...
取消
保存