Bladeren bron

Add custom server name string in Riot config.

This adds into the Riot config.json the field
  'default_server_config.m.homeserver.server_name'
with, by default, the value of the playbook's 'matrix_domain' variable.

Riot displays this string in its login page and will now say 'Sign in to
your Matrix account on example.org' (the server name) instead of 'Sign
in ... on matrix.example.org' (the server domain-name).

This string can be configured by setting the playbook variable
  'matrix_riot_web_default_server_name'
to any string, so we can make Riot say for example 'Sign in ... on Our
Server'.
pull/388/head
Julian Foad 6 jaren geleden
bovenliggende
commit
3228cfd229
2 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. +1
    -0
      roles/matrix-riot-web/defaults/main.yml
  2. +1
    -0
      roles/matrix-riot-web/templates/config.json.j2

+ 1
- 0
roles/matrix-riot-web/defaults/main.yml Bestand weergeven

@@ -17,6 +17,7 @@ matrix_riot_web_container_extra_arguments: []
matrix_riot_web_systemd_required_services_list: ['docker.service'] matrix_riot_web_systemd_required_services_list: ['docker.service']


# Riot config.json customizations # Riot config.json customizations
matrix_riot_web_default_server_name: "{{ matrix_domain }}"
matrix_riot_web_default_hs_url: "" matrix_riot_web_default_hs_url: ""
matrix_riot_web_default_is_url: ~ matrix_riot_web_default_is_url: ~
matrix_riot_web_disable_custom_urls: true matrix_riot_web_disable_custom_urls: true


+ 1
- 0
roles/matrix-riot-web/templates/config.json.j2 Bestand weergeven

@@ -2,6 +2,7 @@
"default_server_config": { "default_server_config": {
"m.homeserver": { "m.homeserver": {
"base_url": {{ matrix_riot_web_default_hs_url|string|to_json }}, "base_url": {{ matrix_riot_web_default_hs_url|string|to_json }},
"server_name": {{ matrix_riot_web_default_server_name|string|to_json }}
}, },
"m.identity_server": { "m.identity_server": {
"base_url": {{ matrix_riot_web_default_is_url|string|to_json }} "base_url": {{ matrix_riot_web_default_is_url|string|to_json }}


Laden…
Annuleren
Opslaan