Skip to content

Commit

Permalink
Umgebungsvariablen entfernt
Browse files Browse the repository at this point in the history
  • Loading branch information
epam-vkerkhoff committed Jan 12, 2024
1 parent 90a2413 commit 9e7e878
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 2 additions & 4 deletions default.conf
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 0 additions & 4 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"

0 comments on commit 9e7e878

Please sign in to comment.