Skip to content

Instantly share code, notes, and snippets.

@nij4t
Last active March 5, 2021 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nij4t/824e2ee3606d4ef5d83de1feec3135e6 to your computer and use it in GitHub Desktop.
Save nij4t/824e2ee3606d4ef5d83de1feec3135e6 to your computer and use it in GitHub Desktop.
A patch for config map generated by a helm chart
--- 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