You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
1.3 KiB
20 lines
1.3 KiB
# Use the official NGINX image from the Docker Hub. But cached by the RUG registry to not to hit rate limits |
|
# Use build args: DOCKER_CACHE=registry.webhosting.rug.nl/cache/library/ |
|
ARG DOCKER_CACHE |
|
FROM ${DOCKER_CACHE}nginx:mainline |
|
|
|
RUN rm -rf /var/lib/apt/lists/* && apt-get update && apt-get -y full-upgrade |
|
|
|
RUN mkdir /etc/nginx/templates |
|
COPY ./nginx/api.vhost.conf /etc/nginx/templates/default.conf.template |
|
|
|
# When this image is started, some settings will be set based on environment variables. Those are |
|
# |
|
# !! REQUIRED !! |
|
# - NGINX_RESOLVER => An IP number which is the DNS server that is used in the Kubernetes cluster |
|
# - NGINX_API_BROKER_UPSTREAM => The fully cluster DNS name of the container where the API is running inside the cluster |
|
# - NGINX_FRONT_END_UPSTREAM => The fully cluster DNS name of the container where the frontend is running inside the cluster |
|
# |
|
# !! OPTIONAL !! |
|
# - NGINX_REAL_IP_LIST => A NGINX config include file which holds all the IP's of the ingress servers that are allowed to change the IP of the request to the original IP so we can do security checks based on IP. Like IP blocking. |
|
# - NGINX_VALID_ADMIN_IP_LIST => A NGINX config include file which holds all the IP's that are allowed to access the /admin/ url. The file is stored as a config map in Kubernetes |