Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

32 rivejä
1.1 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_docker_network }}" \
  14. -p 127.0.0.1:{{ matrix_ssl_lets_encrypt_certbot_standalone_http_port }}:8080 \
  15. -v {{ matrix_ssl_config_dir_path }}:/etc/letsencrypt \
  16. -v {{ matrix_ssl_log_dir_path }}:/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. --quiet \
  26. --standalone \
  27. --preferred-challenges http \
  28. --agree-tos \
  29. --email={{ matrix_ssl_lets_encrypt_support_email }}