Skip to content
Snippets Groups Projects
Commit b8f928f5 authored by Alexander Pace's avatar Alexander Pace
Browse files

Minor css update, major cache update

Turning on AWS Elasticache. NOTE: this is only available on DEV
https://git.ligo.org/lscsoft/gracedb/issues/189
parent 06383944
No related branches found
No related tags found
1 merge request!46Refreshed look and feel
...@@ -84,6 +84,32 @@ AWS_SES_REGION_ENDPOINT = get_from_env('AWS_SES_REGION_ENDPOINT', ...@@ -84,6 +84,32 @@ AWS_SES_REGION_ENDPOINT = get_from_env('AWS_SES_REGION_ENDPOINT',
AWS_SES_AUTO_THROTTLE = 0.25 AWS_SES_AUTO_THROTTLE = 0.25
ALERT_EMAIL_FROM = get_from_env('DJANGO_ALERT_EMAIL_FROM') ALERT_EMAIL_FROM = get_from_env('DJANGO_ALERT_EMAIL_FROM')
# AWS Elasticache settings:
AWS_ELASTICACHE_ADDR = get_from_env('DJANGO_AWS_ELASTICACHE_ADDR')
CACHES['default'] = {
'BACKEND': 'django_elasticache.memcached.ElastiCache',
'LOCATION': AWS_ELASTICACHE_ADDR,
'OPTIONS' {
'IGNORE_CLUSTER_ERRORS': [True,False],
},
}
MIDDLEWARE = [
'core.middleware.maintenance.MaintenanceModeMiddleware',
'events.middleware.PerformanceMiddleware',
'core.middleware.accept.AcceptMiddleware',
'core.middleware.api.ClientVersionMiddleware',
'core.middleware.api.CliExceptionMiddleware',
'django.middleware.cache.UpdateCacheMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware',
'core.middleware.proxy.XForwardedForMiddleware',
'user_sessions.middleware.SessionMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'ligoauth.middleware.ShibbolethWebAuthMiddleware',
'ligoauth.middleware.ControlRoomMiddleware',
]
# Priority server settings ---------------------------------------------------- # Priority server settings ----------------------------------------------------
...@@ -113,6 +139,7 @@ DATABASES = { ...@@ -113,6 +139,7 @@ DATABASES = {
'PORT': os.environ.get('DJANGO_DB_PORT', ''), 'PORT': os.environ.get('DJANGO_DB_PORT', ''),
'OPTIONS': { 'OPTIONS': {
'init_command': 'SET storage_engine=MyISAM', 'init_command': 'SET storage_engine=MyISAM',
'CONN_MAX_AGE': 3600,
# NOTE: for mysql>=5.7 this will need to be changed to # NOTE: for mysql>=5.7 this will need to be changed to
#'init_command': 'SET default_storage_engine=MyISAM', #'init_command': 'SET default_storage_engine=MyISAM',
}, },
......
...@@ -11,11 +11,3 @@ ...@@ -11,11 +11,3 @@
border-color: #FFFFFF; border-color: #FFFFFF;
} }
ul {
list-style-position: outside;
}
li {
list-style-position: inside;
text-indent: -1em;
}
...@@ -32,6 +32,8 @@ packaging==17.1 ...@@ -32,6 +32,8 @@ packaging==17.1
phonenumbers==8.8.11 phonenumbers==8.8.11
python-ldap==3.1.0 python-ldap==3.1.0
python-memcached==1.59 python-memcached==1.59
# Install django-elasticache along with python memcached:
git+git://github.com/gusdan/django-elasticache.git#egg=django-elasticache
scipy==1.2.1 scipy==1.2.1
sentry-sdk==0.7.10 sentry-sdk==0.7.10
service_identity==17.0.0 service_identity==17.0.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment