Procházet zdrojové kódy

Merge pull request #147 from aaronraimist/enable_presence_by_hs_url

Set Riot's enable_presence_by_hs_url to false if presence is disabled
pull/163/head
Slavi Pantaleev před 7 roky
committed by GitHub
rodič
revize
8a862e2414
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 4AEE18F83AFDEB23
3 změnil soubory, kde provedl 13 přidání a 0 odebrání
  1. +7
    -0
      group_vars/matrix-servers
  2. +3
    -0
      roles/matrix-riot-web/defaults/main.yml
  3. +3
    -0
      roles/matrix-riot-web/templates/config.json.j2

+ 7
- 0
group_vars/matrix-servers Zobrazit soubor

@@ -321,6 +321,13 @@ matrix_riot_web_self_check_validate_certificates: "{{ false if matrix_ssl_retrie


matrix_riot_web_registration_enabled: "{{ matrix_synapse_enable_registration }}" matrix_riot_web_registration_enabled: "{{ matrix_synapse_enable_registration }}"


matrix_riot_web_enable_presence_by_hs_url: |
{{
none
if matrix_synapse_use_presence
else {matrix_riot_web_default_hs_url: false}
}}

###################################################################### ######################################################################
# #
# /matrix-riot-web # /matrix-riot-web


+ 3
- 0
roles/matrix-riot-web/defaults/main.yml Zobrazit soubor

@@ -31,3 +31,6 @@ matrix_riot_web_self_check_validate_certificates: true


# don't show the registration button on welcome page # don't show the registration button on welcome page
matrix_riot_web_registration_enabled: false matrix_riot_web_registration_enabled: false

# Controls whether Riot shows the presence features
matrix_riot_web_enable_presence_by_hs_url: ~

+ 3
- 0
roles/matrix-riot-web/templates/config.json.j2 Zobrazit soubor

@@ -14,6 +14,9 @@
"servers": {{ matrix_riot_web_roomdir_servers|to_json }} "servers": {{ matrix_riot_web_roomdir_servers|to_json }}
}, },
"welcomeUserId": {{ matrix_riot_web_welcome_user_id|to_json }}, "welcomeUserId": {{ matrix_riot_web_welcome_user_id|to_json }},
{% if matrix_riot_web_enable_presence_by_hs_url is not none %}
"enable_presence_by_hs_url": {{ matrix_riot_web_enable_presence_by_hs_url|to_json }},
{% endif %}
"embeddedPages": { "embeddedPages": {
"homeUrl": {{ matrix_riot_web_embedded_pages_home_url|to_json }} "homeUrl": {{ matrix_riot_web_embedded_pages_home_url|to_json }}
} }


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