I have a webapp which required authentication to access any page of it. But for my ELB to work I have to setup health-check page for ELB so that ELB discover django app.
This page should return HTTP 200 and no auth required. How do I setup this with django/nginx world.
You can use django-health-check
3rd party app.
Install it using pip -
pip install django-health-check
Configue URL as -
urlpatterns = [
# ...
url(r'^health_check/', include('health_check.urls')),
]
and add the health_check applications to your INSTALLED_APPS:
INSTALLED_APPS = [
# ...
'health_check', # required
]
More details : https://github.com/KristianOellegaard/django-health-check
Now you can confiure ELB health check url as - /health_check/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With