2022-01-11 20:33:22 +01:00
|
|
|
FROM nginx:latest
|
2022-08-05 18:41:55 +02:00
|
|
|
|
|
|
|
# nginx.conf
|
|
|
|
# use the default nginx behaviour for *.template files which are processed with envsubst
|
|
|
|
# override the output dir to output directly to /etc/nginx instead of /etc/nginx/conf.d
|
|
|
|
ENV NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx
|
2023-01-11 22:05:44 +01:00
|
|
|
COPY nginx.prod.conf /etc/nginx/templates/nginx.conf.template
|
2022-10-25 13:03:33 +02:00
|
|
|
|
2022-10-18 10:33:04 +02:00
|
|
|
# IPv6 removal needs to happen after envsubst
|
|
|
|
RUN rm -rf /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
|
|
|
|
COPY 80-listen-on-ipv6-by-default.sh /docker-entrypoint.d/80-listen-on-ipv6-by-default.sh
|
|
|
|
RUN chmod +x /docker-entrypoint.d/80-listen-on-ipv6-by-default.sh
|
2022-08-05 18:41:55 +02:00
|
|
|
|
|
|
|
# Error handling
|
|
|
|
COPY error.html /usr/share/nginx/html/error.html
|
|
|
|
|
|
|
|
# Default environment
|
2022-09-05 10:09:43 +02:00
|
|
|
ENV PROXY_RATE_LIMIT_WEBHOOKS_PER_SECOND=10
|
2023-01-11 22:05:44 +01:00
|
|
|
ENV PROXY_RATE_LIMIT_API_PER_SECOND=20
|
|
|
|
# Use docker-compose values as defaults for backwards compatibility
|
|
|
|
ENV APPS_UPSTREAM_URL=http://app-service:4002
|
|
|
|
ENV WORKER_UPSTREAM_URL=http://worker-service:4003
|
|
|
|
ENV MINIO_UPSTREAM_URL=http://minio-service:9000
|
|
|
|
ENV COUCHDB_UPSTREAM_URL=http://couchdb-service:5984
|
|
|
|
ENV RESOLVER=127.0.0.11
|