Matrix Docker Ansible eploy
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

22 rader
1.1 KiB

  1. MAILTO="{{ ssl_support_email }}"
  2. # The goal of this cronjob is to ask acmetool to check
  3. # the current SSL certificates and to see if some need renewal.
  4. # If so, it would attempt to renew.
  5. #
  6. # Various services depend on these certificates and would need to be restarted.
  7. # This is not our concern here. We simply make sure the certificates are up to date.
  8. # Restarting of services happens on its own different schedule (other cronjobs).
  9. #
  10. #
  11. # How renewal works?
  12. #
  13. # acmetool will fail to bind to port :80 (because matrix-nginx-proxy is running there),
  14. # and will fall back to its "webroot" validation method.
  15. #
  16. # Thus, it would put validation files in `/var/run/acme/acme-challenge`.
  17. # These files can be retrieved via any vhost on port 80 of matrix-nginx-proxy,
  18. # because it aliases `/.well-known/acme-challenge` to that same directory.
  19. 15 4 */5 * * root /usr/bin/docker run --rm --name acmetool-host-grab --net=host -v {{ ssl_certs_path }}:/certs -v {{ ssl_certs_path }}/run:/var/run/acme -e ACME_EMAIL={{ ssl_support_email }} willwill/acme-docker acmetool --batch reconcile # --xlog.severity=debug