Преглед изворни кода

Merge pull request #2565 from array-in-a-matrix/master

add dynamic thumbnails var for Dendrite
pull/2569/head
Slavi Pantaleev пре 3 година
committed by GitHub
родитељ
комит
38cb0a7c85
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 измењених фајлова са 7 додато и 3 уклоњено
  1. +5
    -1
      roles/custom/matrix-dendrite/defaults/main.yml
  2. +2
    -2
      roles/custom/matrix-dendrite/templates/dendrite/dendrite.yaml.j2

+ 5
- 1
roles/custom/matrix-dendrite/defaults/main.yml Прегледај датотеку

@@ -212,5 +212,9 @@ matrix_dendrite_userapi_auto_join_rooms: []
# name, number of active users and some information on your deployment config. # name, number of active users and some information on your deployment config.
matrix_dendrite_report_stats: false matrix_dendrite_report_stats: false


# Configuration for the full-text search engine.
# Contorls whether thumbnails for media content are generated dynamically
matrix_dendrite_mediaapi_dynamic_thumbnails: false
matrix_dendrite_mediaapi_max_thumbnail_generators: 10

# Controls whether the full-text search engine is enabled
matrix_dendrite_syncapi_search_enabled: false matrix_dendrite_syncapi_search_enabled: false

+ 2
- 2
roles/custom/matrix-dendrite/templates/dendrite/dendrite.yaml.j2 Прегледај датотеку

@@ -293,10 +293,10 @@ media_api:
max_file_size_bytes: {{ matrix_dendrite_max_file_size_bytes|to_json }} max_file_size_bytes: {{ matrix_dendrite_max_file_size_bytes|to_json }}


# Whether to dynamically generate thumbnails if needed. # Whether to dynamically generate thumbnails if needed.
dynamic_thumbnails: false
dynamic_thumbnails: {{ matrix_dendrite_mediaapi_dynamic_thumbnails|to_json }}


# The maximum number of simultaneous thumbnail generators to run. # The maximum number of simultaneous thumbnail generators to run.
max_thumbnail_generators: 10
max_thumbnail_generators: {{ matrix_dendrite_mediaapi_max_thumbnails_generators|to_json }}


# A list of thumbnail sizes to be generated for media content. # A list of thumbnail sizes to be generated for media content.
thumbnail_sizes: thumbnail_sizes:


Loading…
Откажи
Сачувај