소스 검색

Include Slavi's improvements to keep roles independent

pull/147/head
Aaron Raimist 7 년 전
부모
커밋
e42fe4b18c
No known key found for this signature in database GPG 키 ID: 37419210002890EF
3개의 변경된 파일12개의 추가작업 그리고 4개의 파일을 삭제
  1. +7
    -0
      group_vars/matrix-servers
  2. +3
    -0
      roles/matrix-riot-web/defaults/main.yml
  3. +2
    -4
      roles/matrix-riot-web/templates/config.json.j2

+ 7
- 0
group_vars/matrix-servers 파일 보기

@@ -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_enable_presence_by_hs_url: |
{{
none
if matrix_synapse_use_presence
else {matrix_riot_web_default_hs_url: false}
}}

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


+ 3
- 0
roles/matrix-riot-web/defaults/main.yml 파일 보기

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

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

# Controls whether Riot shows the presence features
matrix_riot_web_enable_presence_by_hs_url: ~

+ 2
- 4
roles/matrix-riot-web/templates/config.json.j2 파일 보기

@@ -14,10 +14,8 @@
"servers": {{ matrix_riot_web_roomdir_servers|to_json }}
},
"welcomeUserId": {{ matrix_riot_web_welcome_user_id|to_json }},
{% if matrix_synapse_use_presence|to_json %}
"enable_presence_by_hs_url": {
{{ matrix_riot_web_default_hs_url|to_json }}: false
},
{% 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": {
"homeUrl": {{ matrix_riot_web_embedded_pages_home_url|to_json }}


불러오는 중...
취소
저장