Преглед изворни кода

Merge pull request #461 from lampholder/toml/allowed_local_3pids

Expose allowed local 3pids as a configurable option
pull/464/head
Slavi Pantaleev пре 5 година
committed by GitHub
родитељ
комит
27cae3d90c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 измењених фајлова са 10 додато и 0 уклоњено
  1. +7
    -0
      roles/matrix-synapse/defaults/main.yml
  2. +3
    -0
      roles/matrix-synapse/templates/synapse/homeserver.yaml.j2

+ 7
- 0
roles/matrix-synapse/defaults/main.yml Прегледај датотеку

@@ -164,6 +164,13 @@ matrix_synapse_enable_group_creation: false
# A list of 3PID types which users must supply when registering (possible values: email, msisdn). # A list of 3PID types which users must supply when registering (possible values: email, msisdn).
matrix_synapse_registrations_require_3pid: [] matrix_synapse_registrations_require_3pid: []


# A list of patterns 3pids must match in order to permit registration, e.g.:
# - medium: email
# pattern: '.*@example\.com'
# - medium: msisdn
# pattern: '\+44'
matrix_synapse_allowed_local_3pids: []

# The server to use for email threepid validation. When empty, Synapse does it by itself. # The server to use for email threepid validation. When empty, Synapse does it by itself.
# Otherwise, this should be pointed to an identity server. # Otherwise, this should be pointed to an identity server.
matrix_synapse_account_threepid_delegates_email: '' matrix_synapse_account_threepid_delegates_email: ''


+ 3
- 0
roles/matrix-synapse/templates/synapse/homeserver.yaml.j2 Прегледај датотеку

@@ -986,6 +986,9 @@ registrations_require_3pid: {{ matrix_synapse_registrations_require_3pid|to_json
# pattern: '.*@vector\.im' # pattern: '.*@vector\.im'
# - medium: msisdn # - medium: msisdn
# pattern: '\+44' # pattern: '\+44'
{% if matrix_synapse_allowed_local_3pids %}
allowed_local_3pids: {{ matrix_synapse_allowed_local_3pids|to_json }}
{% endif %}


# Enable 3PIDs lookup requests to identity servers from this server. # Enable 3PIDs lookup requests to identity servers from this server.
# #


Loading…
Откажи
Сачувај