소스 검색

Add support for enableHttpGet and waitForComplete Hookshot options

Supersedes https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/2256
pull/2307/head
Slavi Pantaleev 3 년 전
부모
커밋
84f306b236
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. +3
    -1
      roles/custom/matrix-bridge-hookshot/defaults/main.yml
  2. +3
    -1
      roles/custom/matrix-bridge-hookshot/templates/config.yml.j2

+ 3
- 1
roles/custom/matrix-bridge-hookshot/defaults/main.yml 파일 보기

@@ -122,13 +122,15 @@ matrix_hookshot_jira_oauth_redirect_uri: "{{ matrix_hookshot_urlprefix }}{{ matr

# No need to change these
matrix_hookshot_generic_enabled: true
matrix_hookshot_generic_enableHttpGet: false
# Default value of matrix_hookshot_generic_endpoint: "/hookshot/webhooks"
matrix_hookshot_generic_endpoint: "{{ matrix_hookshot_webhook_endpoint }}"
# urlprefix gets updated with protocol & port in group_vars/matrix_servers
matrix_hookshot_generic_urlPrefix: "{{ matrix_hookshot_urlprefix }}{{ matrix_hookshot_generic_endpoint }}"
matrix_hookshot_generic_allowJsTransformationFunctions: false
# If you're also using matrix-appservice-webhooks, take care that these prefixes don't overlap
matrix_hookshot_generic_userIdPrefix: '_webhooks_'
matrix_hookshot_generic_allowJsTransformationFunctions: false
matrix_hookshot_generic_waitForComplete: false


matrix_hookshot_feeds_enabled: true


+ 3
- 1
roles/custom/matrix-bridge-hookshot/templates/config.yml.j2 파일 보기

@@ -73,9 +73,11 @@ generic:
# (Optional) Support for generic webhook events. `allowJsTransformationFunctions` will allow users to write short transformation snippets in code, and thus is unsafe in untrusted environments
#
enabled: {{ matrix_hookshot_generic_enabled | to_json }}
enableHttpGet: {{ matrix_hookshot_generic_enableHttpGet | to_json }}
urlPrefix: {{ matrix_hookshot_generic_urlPrefix | to_json }}
allowJsTransformationFunctions: {{ matrix_hookshot_generic_allowJsTransformationFunctions | to_json }}
userIdPrefix: {{ matrix_hookshot_generic_userIdPrefix | to_json }}
allowJsTransformationFunctions: {{ matrix_hookshot_generic_allowJsTransformationFunctions | to_json }}
waitForComplete: {{ matrix_hookshot_generic_waitForComplete | to_json }}
{% endif %}
{% if matrix_hookshot_feeds_enabled %}
feeds:


불러오는 중...
취소
저장