|Max Mehl 2622af3952||2 weeks ago|
|.drone.yml||11 months ago|
|Dockerfile||3 years ago|
|LICENSE||3 years ago|
|README.md||2 years ago|
|docker-compose.yml||2 weeks ago|
|proxy.conf||3 years ago|
|setdest.sh||3 years ago|
This repository holds the deployment code for containers used to proxy requests to a remote server from lund’s reverse proxy.
The containers transfer requests to remote hosts. For example, for the pdfreaders.org website, the requests are transferred from the reverse proxy to the claus server:
| lund | claus | reverse-proxy -> proxy-pdfreaders -> claus.fsfeurope.org
The benefit of that is that we can use the automatic certificate provisioning integrated in the reverse proxy for websites not being hosted on lund.
The containers use nginx as a reverse proxy. The
proxy.conf file is used as a template for the nginx configuration.
The file setdest.sh replaces the placeholders
%DESTINATION_PORT% in the template with environment variables. The
environment variables are set in the playbook.
The Dockerfile takes
nginx:alpine as the base image, exposes the
port 80, and copy both the template and the script to replace the placeholders.
Then it runs the script and start nginx as
The nginx configuration transfers the IP addresses to the web servers as well
Host HTTP header.