mirror of https://github.com/zulip/zulip.git
[manual] Enable postfix email mirror on staging
This will cause us to recieve messages sent to streams.staging.zulip.com via the local Postfix daemon running on staging. This commit does not impact prod. To deploy, a puppet-apply is needed on staging. (imported from commit 9eaedc28359f55a65b672a2e078c57362897c0de)
This commit is contained in:
parent
882047515c
commit
30a6fd3bd7
|
@ -1,6 +1,7 @@
|
|||
class zulip_internal::staging_app_frontend {
|
||||
include zulip_internal::base
|
||||
include zulip_internal::app_frontend
|
||||
include zulip::postfix_localmail
|
||||
|
||||
file { "/etc/nginx/sites-available/zulip-staging":
|
||||
require => Package["nginx-full"],
|
||||
|
|
|
@ -161,9 +161,13 @@ else:
|
|||
EMAIL_GATEWAY_IMAP_FOLDER = "Test"
|
||||
|
||||
# The email address pattern to use for auto-generated stream emails
|
||||
# The %s will be replaced with a unique token, and the resulting email
|
||||
# must be delivered to the Inbox of the EMAIL_GATEWAY_LOGIN account above
|
||||
EMAIL_GATEWAY_PATTERN = "%s@streams.zulip.com"
|
||||
# The %s will be replaced with a unique token.
|
||||
if STAGING_DEPLOYED:
|
||||
EMAIL_GATEWAY_PATTERN = "%s@streams.staging.zulip.com"
|
||||
elif DEPLOYED:
|
||||
EMAIL_GATEWAY_PATTERN = "%s@streams.zulip.com"
|
||||
else:
|
||||
EMAIL_GATEWAY_PATTERN = "%s@" + EXTERNAL_HOST
|
||||
|
||||
SSO_APPEND_DOMAIN = None
|
||||
|
||||
|
|
Loading…
Reference in New Issue