Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Sync up git config file
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrobenolt committed Apr 14, 2016
1 parent bd7317f commit fb1f152
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions git/sentry.conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
# SENTRY_EMAIL_USER
# SENTRY_EMAIL_PASSWORD
# SENTRY_EMAIL_USE_TLS
# SENTRY_ENABLE_EMAIL_REPLIES
# SENTRY_SMTP_HOSTNAME
# SENTRY_MAILGUN_API_KEY
# SENTRY_SINGLE_ORGANIZATION
# SENTRY_SECRET_KEY
Expand Down Expand Up @@ -219,6 +221,7 @@
# Mail Server #
###############


email = os.environ.get('SENTRY_EMAIL_HOST') or (os.environ.get('SMTP_PORT_25_TCP_ADDR') and 'smtp')
if email:
SENTRY_OPTIONS['mail.backend'] = 'smtp'
Expand All @@ -244,6 +247,15 @@
# route to forward to /api/hooks/mailgun/inbound/
MAILGUN_API_KEY = os.environ.get('SENTRY_MAILGUN_API_KEY') or ''

# If you specify a MAILGUN_API_KEY, you definitely want EMAIL_REPLIES
if MAILGUN_API_KEY:
SENTRY_ENABLE_EMAIL_REPLIES = True
else:
SENTRY_ENABLE_EMAIL_REPLIES = Bool(os.environ.get('SENTRY_ENABLE_EMAIL_REPLIES', False))

if SENTRY_ENABLE_EMAIL_REPLIES:
SENTRY_SMTP_HOSTNAME = os.environ.get('SENTRY_SMTP_HOSTNAME') or 'localhost'

# If this value ever becomes compromised, it's important to regenerate your
# SENTRY_SECRET_KEY. Changing this value will result in all current sessions
# being invalidated.
Expand Down

0 comments on commit fb1f152

Please sign in to comment.