forked from zulip/zulip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove duplicate ZULIP_COM detection from settings.py.
And fix up some required configuration. (imported from commit 761758638baa297118848c9f5640638d6b2f4f67)
- Loading branch information
Showing
1 changed file
with
9 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,20 +26,6 @@ | |
PRODUCTION = config_file.has_option('machine', 'deploy_type') | ||
DEVELOPMENT = not PRODUCTION | ||
|
||
# The following flags are left over from the various configurations of | ||
# Zulip run by Zulip, Inc. We will eventually be able to get rid of | ||
# them and just have the PRODUCTION flag, but we need them for now. | ||
ZULIP_COM_STAGING = PRODUCTION and config_file.get('machine', 'deploy_type') == 'zulip.com-staging' | ||
ZULIP_COM = ((PRODUCTION and config_file.get('machine', 'deploy_type') == 'zulip.com-prod') | ||
or ZULIP_COM_STAGING) | ||
|
||
# Voyager is a production zulip server that is not zulip.com or | ||
# staging.zulip.com VOYAGER is the standalone all-on-one-server | ||
# production deployment model for based on the original Zulip | ||
# ENTERPRISE implementation. We expect most users of the open source | ||
# project will be using VOYAGER=True in production. | ||
VOYAGER = PRODUCTION and not ZULIP_COM | ||
|
||
secrets_file = ConfigParser.RawConfigParser() | ||
if PRODUCTION: | ||
secrets_file.read("/etc/zulip/zulip-secrets.conf") | ||
|
@@ -110,6 +96,13 @@ def get_secret(key): | |
NEW_USER_BOT = "[email protected]" | ||
EMAIL_GATEWAY_BOT = "[email protected]" | ||
|
||
# Voyager is a production zulip server that is not zulip.com or | ||
# staging.zulip.com VOYAGER is the standalone all-on-one-server | ||
# production deployment model for based on the original Zulip | ||
# ENTERPRISE implementation. We expect most users of the open source | ||
# project will be using VOYAGER=True in production. | ||
VOYAGER = PRODUCTION and not ZULIP_COM | ||
|
||
######################################################################## | ||
# STANDARD DJANGO SETTINGS | ||
######################################################################## | ||
|
@@ -377,6 +370,8 @@ def get_secret(key): | |
'DEFAULT_AVATAR_URI': '/static/images/default-avatar.png', | ||
'AUTH_LDAP_SERVER_URI': "", | ||
'EXTERNAL_URI_SCHEME': "https://", | ||
'ZULIP_COM': False, | ||
'ZULIP_COM_STAGING': False, | ||
'GOOGLE_CLIENT_ID': '', | ||
'DBX_APNS_CERT_FILE': None, | ||
} | ||
|