Skip to content

Commit

Permalink
remove the hard upload limit in docker image and make it configurable…
Browse files Browse the repository at this point in the history
… through env-vars;
  • Loading branch information
hannesrichter committed Aug 26, 2023
1 parent b8cf612 commit 0d89bb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ COPY nginx-template.conf /nginx-template.conf
ENV PORT 80
ENV DOLLAR $
ENV API_URL http://localhost:8080
ENV MAX_PAYLOAD_SIZE 500M

EXPOSE 80

Expand Down
2 changes: 1 addition & 1 deletion nginx-template.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ http {
location /api {
proxy_set_header Host ${DOLLAR}host;
proxy_set_header X-Real-IP ${DOLLAR}remote_addr;
client_max_body_size 500M;
client_max_body_size ${MAX_PAYLOAD_SIZE};
proxy_pass ${API_URL};
}

Expand Down

0 comments on commit 0d89bb5

Please sign in to comment.