From e028edd3f1daf943f490420800c3ca37a55ce241 Mon Sep 17 00:00:00 2001 From: Brian Park Date: Tue, 25 Apr 2023 23:48:58 -0400 Subject: [PATCH] add configurable healthcheck port --- docker/backend.dockerfile | 2 ++ docker/wsgi.conf | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docker/backend.dockerfile b/docker/backend.dockerfile index bcec9534..c282127b 100644 --- a/docker/backend.dockerfile +++ b/docker/backend.dockerfile @@ -50,6 +50,8 @@ ENV CPATH=$CPATH:/usr/include/httpd/:/usr/include/apr-1/ ENV LDLINK_HOME=/opt/ldlink +ENV LDLINK_HEALTHCHECK_PORT=8080 + ENV LDLINK_HEALTHCHECK_PATH=/LDlinkRest/ping ENV PYTHONPATH=${LDLINK_HOME}:${PYTHONPATH} diff --git a/docker/wsgi.conf b/docker/wsgi.conf index 0f98f3e9..a1d7458a 100644 --- a/docker/wsgi.conf +++ b/docker/wsgi.conf @@ -1,7 +1,7 @@ # Health check VirtualHost -Listen 8080 +Listen ${LDLINK_HEALTHCHECK_PORT} - + WSGIDaemonProcess health_check processes=1 threads=2 WSGIProcessGroup health_check WSGIScriptAlias / ${LDLINK_HOME}/healthcheck.wsgi