mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-04 13:41:38 -04:00
Merge pull request #2976 from alphagov/healthcheck
use http healthcheck
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -25,6 +25,9 @@ applications:
|
||||
- route: {{ route }}
|
||||
{%- endfor %}
|
||||
|
||||
health-check-type: http
|
||||
health-check-http-endpoint: '/_status?simple=true'
|
||||
|
||||
services:
|
||||
- logit-ssl-syslog-drain
|
||||
|
||||
|
||||
Reference in New Issue
Block a user