diff --git a/app/status/healthcheck.py b/app/status/healthcheck.py index 205906db8..7ccf1f84d 100644 --- a/app/status/healthcheck.py +++ b/app/status/healthcheck.py @@ -57,6 +57,11 @@ def show_delivery_status(): db_version=get_db_version()), 200 +@status.route('/_check_IP_source') +def show_check_IP_source(): + return jsonify({'ip': request.headers.getlist("X-Forwarded-For")}), 200 + + def get_db_version(): try: query = 'SELECT version_num FROM alembic_version'