Matrix Docker Ansible eploy
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

27 lines
920 B

  1. #!/bin/bash
  2. # For renewal to work, matrix-nginx-proxy (or another webserver, if matrix-nginx-proxy is disabled)
  3. # need to forward requests for `/.well-known/acme-challenge` to the certbot container.
  4. #
  5. # This can happen inside the container network by proxying to `http://matrix-certbot:80`
  6. # or outside (on the host) by proxying to `http://localhost:{{ matrix_ssl_certbot_standalone_http_port }}`.
  7. docker run \
  8. --rm \
  9. --name=matrix-certbot \
  10. --network="{{ matrix_docker_network }}" \
  11. -p 127.0.0.1:{{ matrix_ssl_certbot_standalone_http_port }}:80 \
  12. -v {{ matrix_ssl_config_dir_path }}:/etc/letsencrypt \
  13. -v {{ matrix_ssl_log_dir_path }}:/var/log/letsencrypt \
  14. {{ matrix_ssl_certbot_docker_image }} \
  15. renew \
  16. --non-interactive \
  17. {% if matrix_ssl_use_staging %}
  18. --staging \
  19. {% endif %}
  20. --quiet \
  21. --standalone \
  22. --preferred-challenges http \
  23. --agree-tos \
  24. --email={{ matrix_ssl_support_email }}