mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
push_notifs: In dev, automatically use dev APNs cert if provided
This lets us simplify the instructions for testing push notifications with a development client on iOS.
This commit is contained in:
@@ -100,6 +100,13 @@ USING_PGROONGA = True
|
||||
# Flush cache after migration.
|
||||
POST_MIGRATION_CACHE_FLUSHING = True
|
||||
|
||||
# If a sandbox APNs cert is provided, use it.
|
||||
# To create such a cert, see instructions at:
|
||||
# https://github.com/zulip/zulip-mobile/blob/main/docs/howto/push-notifications.md#ios
|
||||
_candidate_apns_cert_file = "zproject/apns-dev.pem"
|
||||
if os.path.isfile(_candidate_apns_cert_file):
|
||||
APNS_CERT_FILE = _candidate_apns_cert_file
|
||||
|
||||
# Don't require anything about password strength in development
|
||||
PASSWORD_MIN_LENGTH = 0
|
||||
PASSWORD_MIN_GUESSES = 0
|
||||
|
Reference in New Issue
Block a user