mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
settings: Support optional memcached authentication.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
d816a12db9
commit
cdda983e90
@@ -313,13 +313,17 @@ SESSION_ENGINE = "django.contrib.sessions.backends.cached_db"
|
||||
PYLIBMC_MIN_COMPRESS_LEN = 100 * 1024
|
||||
PYLIBMC_COMPRESS_LEVEL = 1
|
||||
|
||||
MEMCACHED_PASSWORD = get_secret("memcached_password")
|
||||
|
||||
CACHES = {
|
||||
'default': {
|
||||
'BACKEND': 'django_pylibmc.memcached.PyLibMCCache',
|
||||
'LOCATION': MEMCACHED_LOCATION,
|
||||
'TIMEOUT': 3600,
|
||||
'BINARY': True,
|
||||
'USERNAME': MEMCACHED_USERNAME,
|
||||
'PASSWORD': MEMCACHED_PASSWORD,
|
||||
'OPTIONS': {
|
||||
'verify_keys': True,
|
||||
'tcp_nodelay': True,
|
||||
'retry_timeout': 1,
|
||||
}
|
||||
|
Reference in New Issue
Block a user