Skip to content

Commit

Permalink
fix: only set smtp credentials if provided
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed Jun 22, 2021
1 parent 5814835 commit 9b39ec0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/default.j2
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,12 @@ GF_SESSION_COOKIE_SECURE="true"

GF_SMTP_ENABLED="{{ grafana_smtp_enabled | lower }}"
GF_SMTP_HOST="{{ grafana_smtp_host }}"
{% if grafana_smtp_user | default(False) %}
GF_SMTP_USER="{{ grafana_smtp_user }}"
{% endif %}
{% if grafana_smtp_password | default(False) %}
GF_SMTP_PASSWORD="{{ grafana_smtp_password }}"
{% endif %}
GF_SMTP_FROM_ADDRESS="{{ grafana_smtp_address }}"
GF_SMTP_FROM_NAME="{{ grafana_smtp_name }}"

Expand Down

0 comments on commit 9b39ec0

Please sign in to comment.