Skip to content

Commit

Permalink
optimize upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon-ius committed Mar 11, 2024
1 parent 928169d commit 248fd8c
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ tcp_nopush on;
tcp_nodelay on;
port_in_redirect off;
server_name_in_redirect on;
keepalive_timeout 65;
keepalive_timeout 10m;
set_real_ip_from 127.0.0.1;
real_ip_header proxy_protocol;
EOF
Expand Down Expand Up @@ -232,15 +232,24 @@ EOF
ssl_certificate_key ${SSL_KEY};
ssl_dhparam ${SSL_DHPARAM};
resolver 8.8.8.8 8.8.4.4;
client_max_body_size 100M;
resolver 1.1.1.1 8.8.8.8;
client_max_body_size 0;
client_body_buffer_size 70m;
client_header_buffer_size 50k;
large_client_header_buffers 2 50k;
location / {
proxy_pass http://${AI_SERVICE_HOST}:${AI_SERVICE_PORT}/;
proxy_buffering off;
proxy_redirect off;
proxy_http_version 1.1;
proxy_request_buffering on;
proxy_connect_timeout 20s;
proxy_send_timeout 600s;
proxy_read_timeout 150s;
proxy_set_header Upgrade ${NG_HTTP_UPGRADE};
proxy_set_header Connection "upgrade";
proxy_set_header Host ${NG_HOST};
Expand Down

0 comments on commit 248fd8c

Please sign in to comment.