Matrix Docker Ansible eploy
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 

27 行
981 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_lets_encrypt_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_lets_encrypt_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_lets_encrypt_certbot_docker_image }} \
  15. renew \
  16. --non-interactive \
  17. {% if matrix_ssl_lets_encrypt_staging %}
  18. --staging \
  19. {% endif %}
  20. --quiet \
  21. --standalone \
  22. --preferred-challenges http \
  23. --agree-tos \
  24. --email={{ matrix_ssl_lets_encrypt_support_email }}