Metadata-Version: 2.1
Name: django-ebhealthcheck
Version: 1.0.1
Summary: Django app to add an instance's public IP to ALLOWED_HOSTS for Elastic Beanstalk's health check system
Home-page: https://github.com/sjkingo/django-ebhealthcheck
Author: Sam Kingston
Author-email: sam@sjkwi.com.au
License: BSD
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests

# 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.

Note this only adds the host to settings - the health check system still
requires `/` to return `200 OK`, unless configured differently in EB.

## Installation

Simply add `ebhealthcheck.apps.EBHealthCheckConfig` to your `INSTALLED_APPS`:

```
INSTALLED_APPS = [
    ...
    'ebhealthcheck.apps.EBHealthCheckConfig',
    ...
]
```
