Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

125 строки
7.8 KiB

  1. ---
  2. # matrix-appservice-webhooks is a Matrix <-> webhook bridge
  3. # Project source code URL: https://github.com/redoonetworks/matrix-appservice-webhooks
  4. matrix_appservice_webhooks_enabled: true
  5. matrix_appservice_webhooks_scheme: https
  6. matrix_appservice_webhooks_hostname: ''
  7. matrix_appservice_webhooks_path_prefix: /appservice-webhooks
  8. matrix_appservice_webhooks_container_image_self_build: false
  9. matrix_appservice_webhooks_container_image_self_build_repo: "https://github.com/redoonetworks/matrix-appservice-webhooks"
  10. matrix_appservice_webhooks_container_image_self_build_repo_version: "{{ 'master' if matrix_appservice_webhooks_version == 'latest' else matrix_appservice_webhooks_version }}"
  11. matrix_appservice_webhooks_container_image_self_build_repo_dockerfile_path: "Dockerfile"
  12. matrix_appservice_webhooks_version: v1.0.3-01
  13. matrix_appservice_webhooks_docker_image: "{{ matrix_appservice_webhooks_docker_image_name_prefix }}redoonetworks/matrix-appservice-webhooks:{{ matrix_appservice_webhooks_version }}"
  14. matrix_appservice_webhooks_docker_image_name_prefix: "{{ 'localhost/' if matrix_appservice_webhooks_container_image_self_build else matrix_container_global_registry_prefix }}"
  15. matrix_appservice_webhooks_docker_image_force_pull: "{{ matrix_appservice_webhooks_docker_image.endswith(':latest') }}"
  16. matrix_appservice_webhooks_base_path: "{{ matrix_base_data_path }}/appservice-webhooks"
  17. matrix_appservice_webhooks_config_path: "{{ matrix_appservice_webhooks_base_path }}/config"
  18. matrix_appservice_webhooks_data_path: "{{ matrix_appservice_webhooks_base_path }}/data"
  19. matrix_appservice_webhooks_docker_src_files_path: "{{ matrix_appservice_webhooks_base_path }}/docker-src"
  20. # If nginx-proxy is disabled, the bridge itself expects its endpoint to be on its own domain (e.g. "localhost:6789")
  21. matrix_appservice_webhooks_public_endpoint: "{{ matrix_appservice_webhooks_path_prefix }}"
  22. matrix_appservice_webhooks_inbound_uri_prefix: "{{ matrix_appservice_webhooks_scheme }}://{{ matrix_appservice_webhooks_hostname }}{{ matrix_appservice_webhooks_public_endpoint }}"
  23. matrix_appservice_webhooks_bot_name: 'webhookbot'
  24. matrix_appservice_webhooks_user_prefix: '_webhook_'
  25. # Controls the webhooks_PORT and MATRIX_PORT of the installation
  26. matrix_appservice_webhooks_matrix_port: 6789
  27. # Controls whether the appservice-webhooks container exposes its HTTP port (tcp/6789 in the container).
  28. #
  29. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9999"), or empty string to not expose.
  30. matrix_appservice_webhooks_container_http_host_bind_port: ''
  31. matrix_appservice_webhooks_container_network: ""
  32. matrix_appservice_webhooks_container_additional_networks: "{{ matrix_appservice_webhooks_container_additional_networks_auto + matrix_appservice_webhooks_container_additional_networks_custom }}"
  33. matrix_appservice_webhooks_container_additional_networks_auto: []
  34. matrix_appservice_webhooks_container_additional_networks_custom: []
  35. # matrix_appservice_webhooks_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  36. # See `../templates/labels.j2` for details.
  37. #
  38. # To inject your own other container labels, see `matrix_appservice_webhooks_container_labels_additional_labels`.
  39. matrix_appservice_webhooks_container_labels_traefik_enabled: true
  40. matrix_appservice_webhooks_container_labels_traefik_docker_network: "{{ matrix_appservice_webhooks_container_network }}"
  41. matrix_appservice_webhooks_container_labels_traefik_entrypoints: web-secure
  42. matrix_appservice_webhooks_container_labels_traefik_tls_certResolver: default # noqa var-naming
  43. # Controls whether labels will be added that expose matrix-appservice-webhook's public endpoints
  44. matrix_appservice_webhooks_container_labels_public_endpoint_enabled: true
  45. matrix_appservice_webhooks_container_labels_public_endpoint_hostname: "{{ matrix_appservice_webhooks_hostname }}"
  46. matrix_appservice_webhooks_container_labels_public_endpoint_prefix: "{{ matrix_appservice_webhooks_path_prefix }}"
  47. matrix_appservice_webhooks_container_labels_public_endpoint_traefik_rule: "Host(`{{ matrix_appservice_webhooks_container_labels_public_endpoint_hostname }}`) && PathPrefix(`{{ matrix_appservice_webhooks_path_prefix }}`)"
  48. matrix_appservice_webhooks_container_labels_public_endpoint_traefik_priority: 0
  49. matrix_appservice_webhooks_container_labels_public_endpoint_traefik_entrypoints: "{{ matrix_appservice_webhooks_container_labels_traefik_entrypoints }}"
  50. matrix_appservice_webhooks_container_labels_public_endpoint_traefik_tls: "{{ matrix_appservice_webhooks_container_labels_public_endpoint_traefik_entrypoints != 'web' }}"
  51. matrix_appservice_webhooks_container_labels_public_endpoint_traefik_tls_certResolver: "{{ matrix_appservice_webhooks_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  52. # matrix_appservice_webhooks_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  53. # See `../templates/labels.j2` for details.
  54. #
  55. # Example:
  56. # matrix_appservice_webhooks_container_labels_additional_labels: |
  57. # my.label=1
  58. # another.label="here"
  59. matrix_appservice_webhooks_container_labels_additional_labels: ''
  60. # A list of extra arguments to pass to the container
  61. matrix_appservice_webhooks_container_extra_arguments: []
  62. # List of systemd services that matrix-appservice-webhooks.service depends on.
  63. matrix_appservice_webhooks_systemd_required_services_list: "{{ matrix_appservice_webhooks_systemd_required_services_list_default + matrix_appservice_webhooks_systemd_required_services_list_auto + matrix_appservice_webhooks_systemd_required_services_list_custom }}"
  64. matrix_appservice_webhooks_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  65. matrix_appservice_webhooks_systemd_required_services_list_auto: []
  66. matrix_appservice_webhooks_systemd_required_services_list_custom: []
  67. # List of systemd services that matrix-appservice-webhooks.service wants
  68. matrix_appservice_webhooks_systemd_wanted_services_list: []
  69. matrix_appservice_webhooks_homeserver_media_url: "{{ matrix_server_fqn_matrix }}"
  70. matrix_appservice_webhooks_homeserver_url: ""
  71. matrix_appservice_webhooks_homeserver_domain: "{{ matrix_domain }}"
  72. matrix_appservice_webhooks_appservice_url: 'http://matrix-appservice-webhooks'
  73. matrix_appservice_webhooks_appservice_token: ''
  74. matrix_appservice_webhooks_homeserver_token: ''
  75. matrix_appservice_webhooks_id_token: ''
  76. matrix_appservice_webhooks_api_secret: ''
  77. # Logging information (info and verbose is available) default is: info
  78. matrix_appservice_webhooks_log_level: 'info'
  79. matrix_appservice_webhooks_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  80. matrix_appservice_webhooks_configuration_extension_yaml: |
  81. #
  82. matrix_appservice_webhooks_configuration_extension: "{{ matrix_appservice_webhooks_configuration_extension_yaml | from_yaml if matrix_appservice_webhooks_configuration_extension_yaml | from_yaml else {} }}"
  83. matrix_appservice_webhooks_configuration: "{{ matrix_appservice_webhooks_configuration_yaml | from_yaml | combine(matrix_appservice_webhooks_configuration_extension, recursive=True) }}"
  84. matrix_appservice_webhooks_registration_yaml: |
  85. id: "{{ matrix_appservice_webhooks_id_token }}"
  86. hs_token: "{{ matrix_appservice_webhooks_homeserver_token }}"
  87. as_token: "{{ matrix_appservice_webhooks_appservice_token }}"
  88. namespaces:
  89. users:
  90. - exclusive: true
  91. regex: '^@{{ matrix_appservice_webhooks_user_prefix | regex_escape }}.*:{{ matrix_domain | regex_escape }}$'
  92. aliases: []
  93. rooms: []
  94. url: "{{ matrix_appservice_webhooks_appservice_url }}:{{ matrix_appservice_webhooks_matrix_port }}"
  95. sender_localpart: _webhook
  96. rate_limited: false
  97. protocols: null
  98. matrix_appservice_webhooks_registration: "{{ matrix_appservice_webhooks_registration_yaml | from_yaml }}"