Skip to content

Commit

Permalink
add configurable healthcheck port
Browse files Browse the repository at this point in the history
  • Loading branch information
park-brian committed Apr 26, 2023
1 parent ed9e7e2 commit e028edd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docker/backend.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
4 changes: 2 additions & 2 deletions docker/wsgi.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Health check VirtualHost
Listen 8080
Listen ${LDLINK_HEALTHCHECK_PORT}

<VirtualHost *:8080>
<VirtualHost *:${LDLINK_HEALTHCHECK_PORT}>
WSGIDaemonProcess health_check processes=1 threads=2
WSGIProcessGroup health_check
WSGIScriptAlias / ${LDLINK_HOME}/healthcheck.wsgi
Expand Down

0 comments on commit e028edd

Please sign in to comment.