This application caches web responses from the middle tier. It is not a necessary component of the LUX system -- the frontend can access the middle tier directly if thus set up -- but helps with mitigating performance bottlenecks of the backend database.
It consists of a Varnish Cache instance and an nginx web server running in a docker container. Unconventionally, the nginx server stands between the Varnish cache and the middle tier in order to deal with the limitation of open source Varnish not being able to have multiple IP addresses as the origin (or target, depending on the perspective).
See build-docker-image.sh for an example of building a Docker image.
See run-docker-container.sh for an example of running a container.
See config.json.template for the list of environment variables that must be set before running the container. For local development, you should copy config.json.template to .config.json, fill in the values, and feed that file to the container following the run-docker-container.sh example.
/cms/*
to - e.g. https://lux-middle.example.org /cms/*
to - e.g. https://lux-cms.example.org