Changeset View
Changeset View
Standalone View
Standalone View
swh/web/settings/production.py
Show All 28 Lines | CACHES.update({ | ||||
} | } | ||||
}) | }) | ||||
# Setup support for proxy headers | # Setup support for proxy headers | ||||
USE_X_FORWARDED_HOST = True | USE_X_FORWARDED_HOST = True | ||||
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') | SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') | ||||
# We're going through seven (or, in that case, 2) proxies thanks to Varnish | # We're going through seven (or, in that case, 2) proxies thanks to Varnish | ||||
REST_FRAMEWORK['NUM_PROXIES'] = 2 | REST_FRAMEWORK['NUM_PROXIES'] = 2 # type: ignore | ||||
DATABASES = { | DATABASES = { | ||||
'default': { | 'default': { | ||||
'ENGINE': 'django.db.backends.sqlite3', | 'ENGINE': 'django.db.backends.sqlite3', | ||||
'NAME': swh_web_config['production_db'], | 'NAME': swh_web_config['production_db'], | ||||
} | } | ||||
} | } | ||||
WEBPACK_LOADER['DEFAULT']['CACHE'] = True | WEBPACK_LOADER['DEFAULT']['CACHE'] = True |