Add option to enable Dimension widgets serve sites with self signed certs

This commit is contained in:
Edgars Voroboks 2019-03-12 12:17:12 +02:00
parent 1974935bc6
commit 610eef82b5
2 changed files with 6 additions and 0 deletions

View File

@ -7,6 +7,9 @@ matrix_dimension_access_token: ""
# Users in form: ['@user1:domain.com', '@user2:domain.com']
matrix_dimension_admins: []
# Whether to allow Dimension widgets serve websites with invalid or self signed SSL certificates
matrix_dimension_widgets_allow_self_signed_ssl_certificates: false
matrix_dimension_base_path: "{{ matrix_base_data_path }}/dimension"
matrix_dimension_docker_image: "turt2live/matrix-dimension:latest"

View File

@ -12,6 +12,9 @@ ExecStart=/usr/bin/docker run --rm --name matrix-dimension \
--user={{ matrix_dimension_user_uid }}:{{ matrix_dimension_user_gid }} \
--cap-drop=ALL \
--network={{ matrix_docker_network }} \
{% if matrix_dimension_widgets_allow_self_signed_ssl_certificates %}
-e NODE_TLS_REJECT_UNAUTHORIZED=0 \
{% endif %}
{% if matrix_dimension_container_expose_port %}
-p 127.0.0.1:8184:8184 \
{% endif %}