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.
33 lines
1.2 KiB
33 lines
1.2 KiB
6 years ago
|
#jinja2: lstrip_blocks: "True"
|
||
6 years ago
|
#!/bin/bash
|
||
|
|
||
|
# For renewal to work, matrix-nginx-proxy (or another webserver, if matrix-nginx-proxy is disabled)
|
||
|
# need to forward requests for `/.well-known/acme-challenge` to the certbot container.
|
||
|
#
|
||
6 years ago
|
# This can happen inside the container network by proxying to `http://matrix-certbot:8080`
|
||
6 years ago
|
# or outside (on the host) by proxying to `http://127.0.0.1:{{ matrix_ssl_lets_encrypt_certbot_standalone_http_port }}`.
|
||
6 years ago
|
|
||
|
docker run \
|
||
|
--rm \
|
||
|
--name=matrix-certbot \
|
||
6 years ago
|
--user={{ matrix_user_uid }}:{{ matrix_user_gid }} \
|
||
5 years ago
|
--cap-drop=ALL \
|
||
6 years ago
|
--network="{{ matrix_docker_network }}" \
|
||
6 years ago
|
-p 127.0.0.1:{{ matrix_ssl_lets_encrypt_certbot_standalone_http_port }}:8080 \
|
||
4 years ago
|
--mount type=bind,src={{ matrix_ssl_config_dir_path }},dst=/etc/letsencrypt \
|
||
|
--mount type=bind,src={{ matrix_ssl_log_dir_path }},dst=/var/log/letsencrypt \
|
||
6 years ago
|
{{ matrix_ssl_lets_encrypt_certbot_docker_image }} \
|
||
6 years ago
|
renew \
|
||
|
--non-interactive \
|
||
6 years ago
|
--work-dir=/tmp \
|
||
6 years ago
|
--http-01-port 8080 \
|
||
6 years ago
|
{% if matrix_ssl_lets_encrypt_staging %}
|
||
3 years ago
|
--staging \
|
||
6 years ago
|
{% endif %}
|
||
3 years ago
|
--key-type {{ matrix_ssl_lets_encrypt_key_type }} \
|
||
6 years ago
|
--standalone \
|
||
|
--preferred-challenges http \
|
||
|
--agree-tos \
|
||
4 years ago
|
--email={{ matrix_ssl_lets_encrypt_support_email }} \
|
||
|
--no-random-sleep-on-renew
|