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
#36)

* remove the hard upload limit in docker image and make it configurable through env-vars;

* bumped the timeouts of nginx;
  • Loading branch information
hannesrichter authored Oct 12, 2023
1 parent b8cf612 commit 00a97e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
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
10 changes: 7 additions & 3 deletions nginx-template.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ http {
include mime.types;
default_type application/octet-stream;

keepalive_timeout 65;

keepalive_timeout 600;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;

gzip on;
gzip_min_length 10240;
gzip_proxied any;
Expand All @@ -24,7 +28,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 00a97e6

Please sign in to comment.