Kaynağa Gözat

expose smtp_user and smtp_pass to ansible configs (role: matrix-synapse)

pull/1406/head
rakshazi 4 yıl önce
ebeveyn
işleme
d41e9230da
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: C90147FA80933CCA
2 değiştirilmiş dosya ile 4 ekleme ve 3 silme
  1. +2
    -0
      roles/matrix-synapse/defaults/main.yml
  2. +2
    -3
      roles/matrix-synapse/templates/synapse/homeserver.yaml.j2

+ 2
- 0
roles/matrix-synapse/defaults/main.yml Dosyayı Görüntüle

@@ -473,6 +473,8 @@ matrix_synapse_turn_allow_guests: False
matrix_synapse_email_enabled: false matrix_synapse_email_enabled: false
matrix_synapse_email_smtp_host: "" matrix_synapse_email_smtp_host: ""
matrix_synapse_email_smtp_port: 587 matrix_synapse_email_smtp_port: 587
matrix_synapse_email_smtp_user: ""
matrix_synapse_email_smtp_pass: ""
matrix_synapse_email_smtp_require_transport_security: false matrix_synapse_email_smtp_require_transport_security: false
matrix_synapse_email_notif_from: "Matrix <matrix@{{ matrix_domain }}>" matrix_synapse_email_notif_from: "Matrix <matrix@{{ matrix_domain }}>"
matrix_synapse_email_client_base_url: "https://{{ matrix_server_fqn_element }}" matrix_synapse_email_client_base_url: "https://{{ matrix_server_fqn_element }}"


+ 2
- 3
roles/matrix-synapse/templates/synapse/homeserver.yaml.j2 Dosyayı Görüntüle

@@ -2338,9 +2338,8 @@ email:


# Username/password for authentication to the SMTP server. By default, no # Username/password for authentication to the SMTP server. By default, no
# authentication is attempted. # authentication is attempted.
#
#smtp_user: "exampleusername"
#smtp_pass: "examplepassword"
smtp_user: {{ matrix_synapse_email_smtp_user|string|to_json }}
smtp_pass: {{ matrix_synapse_email_smtp_pass|string|to_json }}


# Uncomment the following to require TLS transport security for SMTP. # Uncomment the following to require TLS transport security for SMTP.
# By default, Synapse will connect over plain text, and will then switch to # By default, Synapse will connect over plain text, and will then switch to


Yükleniyor…
İptal
Kaydet