Last active
March 5, 2021 11:43
-
-
Save nij4t/824e2ee3606d4ef5d83de1feec3135e6 to your computer and use it in GitHub Desktop.
A patch for config map generated by a helm chart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a.yaml 2020-06-26 14:36:39.678864700 +0400 | |
+++ b.yaml 2020-06-26 14:34:38.222195787 +0400 | |
@@ -321,6 +321,12 @@ | |
# Mail Server # | |
############### | |
+ # Set the default socket timeout to a value that prevents connections | |
+ # to our SMTP server from timing out, due to sendmail's greeting pause | |
+ # feature. | |
+ import socket | |
+ socket.setdefaulttimeout(10) | |
+ | |
email = env('SENTRY_EMAIL_HOST') or (env('SMTP_PORT_25_TCP_ADDR') and 'smtp') | |
if email: | |
SENTRY_OPTIONS['mail.backend'] = 'smtp' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment