Merge pull request #2976 from alphagov/healthcheck

use http healthcheck
This commit is contained in:
Leo Hemsted
2019-05-17 15:26:44 +01:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ from app.status import status
@status.route('/_status', methods=['GET'])
def show_status():
if request.args.get('elb', None):
if request.args.get('elb', None) or request.args.get('simple', None):
return jsonify(status="ok"), 200
else:
try:

View File

@@ -25,6 +25,9 @@ applications:
- route: {{ route }}
{%- endfor %}
health-check-type: http
health-check-http-endpoint: '/_status?simple=true'
services:
- logit-ssl-syslog-drain