Переглянути джерело

add configuration to change Riot.im branding

pull/218/head
Stefan Warnat 6 роки тому
джерело
коміт
2706ca9586
2 змінених файлів з 4 додано та 1 видалено
  1. +3
    -0
      roles/matrix-riot-web/defaults/main.yml
  2. +1
    -1
      roles/matrix-riot-web/templates/config.json.j2

+ 3
- 0
roles/matrix-riot-web/defaults/main.yml Переглянути файл

@@ -21,6 +21,7 @@ matrix_riot_web_default_hs_url: ""
matrix_riot_web_default_is_url: ~
matrix_riot_web_disable_custom_urls: true
matrix_riot_web_disable_guests: true

matrix_riot_web_integrations_ui_url: "https://scalar.vector.im/"
matrix_riot_web_integrations_rest_url: "https://scalar.vector.im/api"
matrix_riot_web_integrations_widgets_urls: ["https://scalar.vector.im/api"]
@@ -28,6 +29,8 @@ matrix_riot_web_integrations_jitsi_widget_url: "https://scalar.vector.im/api/wid
# Riot public room directory server(s)
matrix_riot_web_roomdir_servers: ['matrix.org']
matrix_riot_web_welcome_user_id: "@riot-bot:matrix.org"
# Branding of riot web
matrix_riot_web_brand: "Riot"

# By default, there's no Riot homepage (when logged in). If you wish to have one,
# point this to a `home.html` template file on your local filesystem.


+ 1
- 1
roles/matrix-riot-web/templates/config.json.j2 Переглянути файл

@@ -4,7 +4,7 @@
"default_is_url": {{ matrix_riot_web_default_is_url|string|to_json }},
"disable_custom_urls": {{ matrix_riot_web_disable_custom_urls|to_json }},
"disable_guests": {{ matrix_riot_web_disable_guests|to_json }},
"brand": "Riot",
"brand": {{ matrix_riot_web_brand|to_json }},
"integrations_ui_url": {{ matrix_riot_web_integrations_ui_url|string|to_json }},
"integrations_rest_url": {{ matrix_riot_web_integrations_rest_url|string|to_json }},
"integrations_widgets_urls": {{ matrix_riot_web_integrations_widgets_urls|to_json }},


Завантаження…
Відмінити
Зберегти