瀏覽代碼

Add 'permalinkPrefix' and 'default_theme' for configuring riot web (#472)

* add permalinkPrefix to riot-web config

* add feature to change default theme of riot-web via its config file

* remove matrix_riot_web_change_default_theme and provide sane default
pull/476/head
GuillauG 5 年之前
committed by GitHub
父節點
當前提交
29f606bac7
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 2 個檔案被更改,包括 6 行新增0 行删除
  1. +4
    -0
      roles/matrix-riot-web/defaults/main.yml
  2. +2
    -0
      roles/matrix-riot-web/templates/config.json.j2

+ 4
- 0
roles/matrix-riot-web/defaults/main.yml 查看文件

@@ -29,6 +29,7 @@ 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_rest_url: "https://scalar.vector.im/api"
matrix_riot_web_integrations_widgets_urls: ["https://scalar.vector.im/api"] matrix_riot_web_integrations_widgets_urls: ["https://scalar.vector.im/api"]
matrix_riot_web_integrations_jitsi_widget_url: "https://scalar.vector.im/api/widgets/jitsi.html" matrix_riot_web_integrations_jitsi_widget_url: "https://scalar.vector.im/api/widgets/jitsi.html"
matrix_riot_web_permalinkPrefix: "https://matrix.to"
# Riot public room directory server(s) # Riot public room directory server(s)
matrix_riot_web_roomdir_servers: ['matrix.org'] matrix_riot_web_roomdir_servers: ['matrix.org']
matrix_riot_web_welcome_user_id: "@riot-bot:matrix.org" matrix_riot_web_welcome_user_id: "@riot-bot:matrix.org"
@@ -75,6 +76,9 @@ matrix_riot_web_enable_presence_by_hs_url: ~
matrix_riot_web_themes_enabled: false matrix_riot_web_themes_enabled: false
matrix_riot_web_themes_repository_url: https://github.com/aaronraimist/riot-web-themes matrix_riot_web_themes_repository_url: https://github.com/aaronraimist/riot-web-themes


# Controls the default riot-web theme
matrix_riot_web_default_theme: 'light'

# Controls the `settingsDefault.custom_themes` setting of the riot-web configuration. # Controls the `settingsDefault.custom_themes` setting of the riot-web configuration.
# You can use this setting to define custom themes. # You can use this setting to define custom themes.
# #


+ 2
- 0
roles/matrix-riot-web/templates/config.json.j2 查看文件

@@ -11,6 +11,8 @@
"settingDefaults": { "settingDefaults": {
"custom_themes": {{ matrix_riot_web_settingDefaults_custom_themes|to_json }} "custom_themes": {{ matrix_riot_web_settingDefaults_custom_themes|to_json }}
}, },
"default_theme": {{ matrix_riot_web_default_theme|string|to_json }},
"permalinkPrefix": {{ matrix_riot_web_permalinkPrefix|string|to_json }},
"disable_custom_urls": {{ matrix_riot_web_disable_custom_urls|to_json }}, "disable_custom_urls": {{ matrix_riot_web_disable_custom_urls|to_json }},
"disable_guests": {{ matrix_riot_web_disable_guests|to_json }}, "disable_guests": {{ matrix_riot_web_disable_guests|to_json }},
"brand": {{ matrix_riot_web_brand|to_json }}, "brand": {{ matrix_riot_web_brand|to_json }},


Loading…
取消
儲存