A Django app to respond to AWS health checks
Project description
django-openstax-healthcheck is a Django middleware to intercept /ping and /ping/ requests from AWS. This is required when using OpenStax IaC for deployment.
Quick start
Add the following settings to your settings file::
# Add to middleware, be sure it's before CommonMiddleware
MIDDLEWARE = [
# ... (optional before)
'healthcheck.middleware.HealthCheckMiddleware',
# ... (optional between)
'django.middleware.common.CommonMiddleware',
# ... (optional after CommonMiddleware)
]
Usage
Add something like this to your logging configuration:
import logging
logging.config.dictConfig({
# ...
'filters': {
'healthcheck_filter': {
'()': 'healthcheck.filter.HealthCheckFilter'
},
},
# ...
})
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-openstax-healthcheck-1.0.tar.gz.
File metadata
- Download URL: django-openstax-healthcheck-1.0.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
888a08805cc13f5c351228e94d94e087902fec3bfe7c3f6d75cd24d4d856dc68
|
|
| MD5 |
c519656c8e80b8468ad286b9d37f5224
|
|
| BLAKE2b-256 |
16659e2c31399313601e09a4d74798ae188af6f14a73aa5842a1a3a77e95557f
|
File details
Details for the file django_openstax_healthcheck-1.0-py3-none-any.whl.
File metadata
- Download URL: django_openstax_healthcheck-1.0-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a94f3f64f597e78019aa32ef48b271e0e3344e2668227cf7916d8f283a4bdee6
|
|
| MD5 |
f0d0dcc9006951871aeea88a2864758f
|
|
| BLAKE2b-256 |
50cbdb9510db3bc0d7bfbba29d766761a9f4f8f64470a24705dc0505c802fdd2
|