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!
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

37 行
981B

  1. images:
  2. gitea-latest: .
  3. certbot-latest: ../certbot
  4. volumes:
  5. gitea-data: {}
  6. certbot-webroot: {}
  7. certbot-config-gitea: {}
  8. jails:
  9. gitea:
  10. meta:
  11. domains:
  12. - 1101.ch
  13. - www.1101.ch
  14. image: gitea-latest
  15. mounts:
  16. gitea-data: /var/db/gitea
  17. ip4.addr: 127.0.8.1
  18. exec.start: |
  19. chown git:git /var/db/gitea && \
  20. sed -i -e 's/HTTP_ADDR = 127.0.0.1/HTTP_ADDR = 127.0.8.1/g' /usr/local/etc/gitea/conf/app.ini && \
  21. /bin/sh /etc/rc
  22. certbot-gitea:
  23. image: certbot-latest
  24. mounts:
  25. certbot-webroot: /certbot/webroot
  26. certbot-config-gitea: /usr/local/etc/letsencrypt
  27. ip4.addr: 127.0.9.1
  28. exec.start: |
  29. if [ ! -f /usr/local/etc/letsencrypt/cli.ini ]; then
  30. echo 'webroot-path=/certbot/webroot' >>/usr/local/etc/letsencrypt/cli.ini && \
  31. echo 'authenticator=webroot' >>/usr/local/etc/letsencrypt/cli.ini;
  32. fi && \
  33. /bin/sh /etc/rc