From 9e7e878363e2fac8875671720b46077e71e30b14 Mon Sep 17 00:00:00 2001 From: Volker Kerkhoff Date: Fri, 12 Jan 2024 14:36:23 +0100 Subject: [PATCH] Umgebungsvariablen entfernt --- default.conf | 6 ++---- docker-entrypoint.sh | 4 ---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/default.conf b/default.conf index 8f17300..28335b6 100644 --- a/default.conf +++ b/default.conf @@ -1,18 +1,16 @@ server { listen 80; server_name _; - client_max_body_size $CLIENT_MAX_BODY_SIZE; + client_max_body_size 1024K; #charset koi8-r; #access_log /var/log/nginx/host.access.log main; # 127.0.0.11 is DNS set up by Docker, see: # https://docs.docker.com/engine/userguide/networking/configure-dns/ # https://github.com/moby/moby/issues/20026 - resolver $RESOLVERS valid=10s ipv6=off; - set $upstream $UPSTREAM_HTTP_ADDRESS; location / { - proxy_pass $upstream; + proxy_pass https://api.ocpdb.de; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 2bd8daa..d5ceaaa 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -8,8 +8,4 @@ if [ "x$RESOLVERS" = "x" ]; then exit 1 fi -cp /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf.template - -envsubst '$RESOLVERS $UPSTREAM_HTTP_ADDRESS $CLIENT_MAX_BODY_SIZE' < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf - exec "$@" \ No newline at end of file