mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-25 18:38:30 +01:00
Add support for custom ma1sd view sesion templates
This commit is contained in:
parent
f84c69c164
commit
4805637181
@ -83,6 +83,17 @@ matrix_ma1sd_dns_overwrite_enabled: false
|
|||||||
matrix_ma1sd_dns_overwrite_homeserver_client_name: "{{ matrix_server_fqn_matrix }}"
|
matrix_ma1sd_dns_overwrite_homeserver_client_name: "{{ matrix_server_fqn_matrix }}"
|
||||||
matrix_ma1sd_dns_overwrite_homeserver_client_value: "http://matrix-synapse:8008"
|
matrix_ma1sd_dns_overwrite_homeserver_client_value: "http://matrix-synapse:8008"
|
||||||
|
|
||||||
|
# Override the default session templates
|
||||||
|
# To use this, fill in the template variables with the full desired template as a multi-line YAML variable
|
||||||
|
#
|
||||||
|
# More info:
|
||||||
|
# https://github.com/ma1uta/ma1sd/blob/master/docs/threepids/session/session-views.md
|
||||||
|
matrix_ma1sd_view_session_custom_templates_enabled: false
|
||||||
|
# Defaults to: https://github.com/ma1uta/ma1sd/blob/master/src/main/resources/templates/session/tokenSubmitSuccess.html
|
||||||
|
matrix_ma1sd_view_session_custom_onTokenSubmit_success_template: ""
|
||||||
|
# Defaults to: https://github.com/ma1uta/ma1sd/blob/master/src/main/resources/templates/session/tokenSubmitFailure.html
|
||||||
|
matrix_ma1sd_view_session_custom_onTokenSubmit_failure_template: ""
|
||||||
|
|
||||||
# Override the default email templates
|
# Override the default email templates
|
||||||
# To use this, fill in the template variables with the full desired template as a multi-line YAML variable
|
# To use this, fill in the template variables with the full desired template as a multi-line YAML variable
|
||||||
#
|
#
|
||||||
|
@ -107,6 +107,18 @@
|
|||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_groupname }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
|
- name: Ensure custom view templates are installed, if any
|
||||||
|
copy:
|
||||||
|
content: "{{ item.value }}"
|
||||||
|
dest: "{{ matrix_ma1sd_config_path }}/{{ item.location }}"
|
||||||
|
mode: 0644
|
||||||
|
owner: "{{ matrix_user_username }}"
|
||||||
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
with_items:
|
||||||
|
- {value: "{{ matrix_ma1sd_view_session_custom_onTokenSubmit_success_template }}", location: 'tokenSubmitSuccess.html'}
|
||||||
|
- {value: "{{ matrix_ma1sd_view_session_custom_onTokenSubmit_failure_template }}", location: 'tokenSubmitFailure.html'}
|
||||||
|
when: "matrix_ma1sd_view_session_custom_templates_enabled|bool and item.value"
|
||||||
|
|
||||||
- name: Ensure custom email templates are installed, if any
|
- name: Ensure custom email templates are installed, if any
|
||||||
copy:
|
copy:
|
||||||
content: "{{ item.value }}"
|
content: "{{ item.value }}"
|
||||||
|
@ -73,6 +73,18 @@ threepid:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if matrix_ma1sd_view_session_custom_templates_enabled %}
|
||||||
|
view:
|
||||||
|
session:
|
||||||
|
onTokenSubmit:
|
||||||
|
{% if matrix_ma1sd_view_session_custom_onTokenSubmit_success_template %}
|
||||||
|
success: '/etc/ma1sd/tokenSubmitSuccess.html'
|
||||||
|
{% endif %}
|
||||||
|
{% if matrix_ma1sd_view_session_custom_onTokenSubmit_failure_template %}
|
||||||
|
failure: '/etc/ma1sd/tokenSubmitFailure.html'
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if matrix_ma1sd_hashing_enabled %}
|
{% if matrix_ma1sd_hashing_enabled %}
|
||||||
hashing:
|
hashing:
|
||||||
enabled: true # enable or disable the hash lookup MSC2140 (default is false)
|
enabled: true # enable or disable the hash lookup MSC2140 (default is false)
|
||||||
|
Loading…
Reference in New Issue
Block a user