Procházet zdrojové kódy

Default config mapping

pull/5289/head
jasonlaguidice před 2 týdny
rodič
revize
210b7b3b0d
2 změnil soubory, kde provedl 30 přidání a 5 odebrání
  1. +12
    -5
      roles/custom/matrix-bridge-rustpush/defaults/main.yml
  2. +18
    -0
      roles/custom/matrix-bridge-rustpush/templates/config.yaml.j2

+ 12
- 5
roles/custom/matrix-bridge-rustpush/defaults/main.yml Zobrazit soubor

@@ -6,16 +6,16 @@
# matrix-bridge-rustpush is a Matrix <-> iMessage bridge using RustPush # matrix-bridge-rustpush is a Matrix <-> iMessage bridge using RustPush
# Project source code URL: https://github.com/jasonlaguidice/imessage # Project source code URL: https://github.com/jasonlaguidice/imessage


matrix_rustpush_bridge_enabled: true
matrix_rustpush_bridge_enabled: false


# No upstream Docker image exists; self-build is always required.
matrix_rustpush_bridge_container_image_self_build: true
matrix_rustpush_bridge_container_image_self_build: false
matrix_rustpush_bridge_container_image_self_build_repo: "https://github.com/jasonlaguidice/imessage.git" matrix_rustpush_bridge_container_image_self_build_repo: "https://github.com/jasonlaguidice/imessage.git"
matrix_rustpush_bridge_container_image_self_build_repo_version: "{{ 'master' if matrix_rustpush_bridge_version == 'latest' else matrix_rustpush_bridge_version }}" matrix_rustpush_bridge_container_image_self_build_repo_version: "{{ 'master' if matrix_rustpush_bridge_version == 'latest' else matrix_rustpush_bridge_version }}"


# Adjust to pin to releases
matrix_rustpush_bridge_version: latest matrix_rustpush_bridge_version: latest
matrix_rustpush_bridge_docker_image: "{{ matrix_rustpush_bridge_docker_image_registry_prefix }}jasonlaguidice/imessage:{{ matrix_rustpush_bridge_version }}" matrix_rustpush_bridge_docker_image: "{{ matrix_rustpush_bridge_docker_image_registry_prefix }}jasonlaguidice/imessage:{{ matrix_rustpush_bridge_version }}"
matrix_rustpush_bridge_docker_image_registry_prefix: "localhost/"
matrix_rustpush_bridge_docker_image_registry_prefix: "ghcr.io/"
matrix_rustpush_bridge_docker_image_force_pull: "{{ matrix_rustpush_bridge_docker_image.endswith(':latest') }}" matrix_rustpush_bridge_docker_image_force_pull: "{{ matrix_rustpush_bridge_docker_image.endswith(':latest') }}"


matrix_rustpush_bridge_base_path: "{{ matrix_base_data_path }}/rustpush-bridge" matrix_rustpush_bridge_base_path: "{{ matrix_base_data_path }}/rustpush-bridge"
@@ -40,7 +40,14 @@ matrix_rustpush_bridge_appservice_public_address: ''
# {{.Phone}}, {{.Email}}, {{.ID}} # {{.Phone}}, {{.Email}}, {{.ID}}
matrix_rustpush_bridge_network_displayname_template: "{% raw %}{{if .FirstName}}{{.FirstName}}{{if .LastName}} {{.LastName}}{{end}}{{else if .Nickname}}{{.Nickname}}{{else if .Phone}}{{.Phone}}{{else if .Email}}{{.Email}}{{else}}{{.ID}}{{end}}{% endraw %}" matrix_rustpush_bridge_network_displayname_template: "{% raw %}{{if .FirstName}}{{.FirstName}}{{if .LastName}} {{.LastName}}{{end}}{{else if .Nickname}}{{.Nickname}}{{else if .Phone}}{{.Phone}}{{else if .Email}}{{.Email}}{{else}}{{.ID}}{{end}}{% endraw %}"


matrix_rustpush_bridge_bridge_command_prefix: "!imessage"
matrix_rustpush_bridge_cloudkit_backfill: true
matrix_rustpush_bridge_video_transcoding: true
matrix_rustpush_bridge_heic_conversion: true
matrix_rustpush_bridge_disable_facetime: false
matrix_rustpush_bridge_statuskit_notifications: true
matrix_rustpush_bridge_statuskit_share_on_startup: true

matrix_rustpush_bridge_bridge_command_prefix: "!im"


matrix_rustpush_bridge_bridge_permissions: | matrix_rustpush_bridge_bridge_permissions: |
{{ {{


+ 18
- 0
roles/custom/matrix-bridge-rustpush/templates/config.yaml.j2 Zobrazit soubor

@@ -10,6 +10,24 @@ network:
# Default is 365 (1 year). Set to 0 to use the default. # Default is 365 (1 year). Set to 0 to use the default.
initial_sync_days: {{ matrix_rustpush_bridge_initial_sync_days | to_json }} initial_sync_days: {{ matrix_rustpush_bridge_initial_sync_days | to_json }}


# Set to false to disable CloudKit backfill globally
cloudkit_backfill: {{ matrix_rustpush_bridge_cloudkit_backfill | to_json }}
backfill_source: cloudkit

# Enable or disable video transcoding
video_transcoding: {{ matrix_rustpush_bridge_video_transcoding | to_json }}

# Enable or disable HEIC conversion
heic_conversion: {{ matrix_rustpush_bridge_heic_conversion | to_json }}
heic_jpeg_quality: 95

# Set to true to disable Facetime support globally
disable_facetime: {{ matrix_rustpush_bridge_disable_facetime | to_json }}

# Set to false to disable Statuskit support globally
statuskit_notifications: {{ matrix_rustpush_bridge_statuskit_notifications | to_json }}
statuskit_share_on_startup: {{ matrix_rustpush_bridge_statuskit_share_on_startup | to_json }}

# Config options that affect the central bridge module. # Config options that affect the central bridge module.
bridge: bridge:
# The prefix for commands. Only required in non-management rooms. # The prefix for commands. Only required in non-management rooms.


Načítá se…
Zrušit
Uložit