django-ebhealthcheck
By default, Elastic Beanstalk's health check system uses the public IP of each
load balanced instance as the request's host header when making a request.
Unless added to ALLOWED_HOSTS, this causes Django to return a 400 Bad Request and a failed health check.
This app dynamically adds your instance's public IP address to Django's
ALLOWED_HOSTS setting to permit health checks to succeed. This happens upon
application start.
Version 2.0.0 and higher supports IMDSv2. If you are using v1 and cannot upgrade,
use version 1 of this library instead (pip install django-ebhealthcheck<2.0.0).
Installation
-
pip install django-ebhealthcheck -
Add
ebhealthcheck.apps.EBHealthCheckConfigto yourINSTALLED_APPS:INSTALLED_APPS = [ ... 'ebhealthcheck.apps.EBHealthCheckConfig', ... ]
Metadata
Release files for django-ebhealthcheck 2.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_ebhealthcheck-2.0.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for django_ebhealthcheck-2.0.2-py2.py3-none-any.whl |
Release files / django_ebhealthcheck-2.0.2-py2.py3-none-any.whl
| Download URL | django_ebhealthcheck-2.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d492a31db8dc6129f8b3dcf970ee5d287f6a7a945688a50e1e9bc0a83cd67ea1
|
|
BLAKE2b-256 checksum How to use checksums |
a5ffb81f636acf1561f1c17b8f2c53ce6e265f6f8517188416e5f338cdbc0d31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.7
|
Security for django-ebhealthcheck 2.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.