Skip to content

Commit

Permalink
Add ENV variable to disable TLS expiration notifications via E-Mail
Browse files Browse the repository at this point in the history
  • Loading branch information
brotandgames committed Jul 4, 2023
1 parent 7f5351b commit 8201513
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/notifications.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
)
end

NOTIFICATIONS_TLS_EXPIRES << Ciao::Notifications::MailNotificationTlsExpires.new if ENV['SMTP_ADDRESS'].present?
NOTIFICATIONS_TLS_EXPIRES << Ciao::Notifications::MailNotificationTlsExpires.new if ENV['SMTP_ADDRESS'].present? && !ENV['SMTP_DISABLE_TLS_EXPIRES_NOTIFICATIONS'].present?
7 changes: 7 additions & 0 deletions smtp_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ SMTP_PASSWORD="sensitive_password"
SMTP_SSL=true
````

> New as of 1.9.3
```
# Disable TLS expiration notifications via E-Mail for all checks
SMTP_DISABLE_TLS_EXPIRES_NOTIFICATIONS=true
```

## Notes

* When `SMTP_ADDRESS` variable is not set no e-mail notifications are sent
Expand Down

0 comments on commit 8201513

Please sign in to comment.