Matrix Docker Ansible eploy
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

33 lignes
1.2 KiB

  1. #jinja2: lstrip_blocks: "True"
  2. #!/bin/bash
  3. # For renewal to work, matrix-nginx-proxy (or another webserver, if matrix-nginx-proxy is disabled)
  4. # need to forward requests for `/.well-known/acme-challenge` to the certbot container.
  5. #
  6. # This can happen inside the container network by proxying to `http://matrix-certbot:8080`
  7. # or outside (on the host) by proxying to `http://127.0.0.1:{{ matrix_ssl_lets_encrypt_certbot_standalone_http_port }}`.
  8. docker run \
  9. --rm \
  10. --name=matrix-certbot \
  11. --user={{ matrix_user_uid }}:{{ matrix_user_gid }} \
  12. --cap-drop=ALL \
  13. --network="{{ matrix_nginx_proxy_container_network }}" \
  14. -p 127.0.0.1:{{ matrix_ssl_lets_encrypt_certbot_standalone_http_port }}:8080 \
  15. --mount type=bind,src={{ matrix_ssl_config_dir_path }},dst=/etc/letsencrypt \
  16. --mount type=bind,src={{ matrix_ssl_log_dir_path }},dst=/var/log/letsencrypt \
  17. {{ matrix_ssl_lets_encrypt_certbot_docker_image }} \
  18. renew \
  19. --non-interactive \
  20. --work-dir=/tmp \
  21. --http-01-port 8080 \
  22. {% if matrix_ssl_lets_encrypt_staging %}
  23. --staging \
  24. {% endif %}
  25. --key-type {{ matrix_ssl_lets_encrypt_key_type }} \
  26. --standalone \
  27. --preferred-challenges http \
  28. --agree-tos \
  29. --email={{ matrix_ssl_lets_encrypt_support_email }} \
  30. --no-random-sleep-on-renew