Skip to content

Commit 7e6aa34

Browse files
committed
Fixed upload size and timeout
1 parent 7fd5566 commit 7e6aa34

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/php/with-nginx/rootfs/etc/cont-init.d/zz-start-nginx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,16 @@ if [ ! -z "$PHP_POST_MAX_SIZE" ]; then
1616
fi
1717

1818
if [ ! -z "$PHP_MAX_EXECUTION_TIME" ] && [ "$PHP_MAX_EXECUTION_TIME" -gt "0" ]; then
19-
echo "client_body_timeout ${PHP_MAX_EXECUTION_TIME};" >/etc/nginx/custom.d/client_body_timeout.conf
20-
echo "proxy_read_timeout ${PHP_MAX_EXECUTION_TIME};" >/etc/nginx/custom.d/proxy_read_timeout.conf
19+
echo "
20+
send_timeout ${PHP_MAX_EXECUTION_TIME};
21+
client_body_timeout ${PHP_MAX_EXECUTION_TIME};
22+
" >/etc/nginx/custom.d/client_body_timeout.conf
23+
24+
echo "
25+
proxy_connect_timeout ${PHP_MAX_EXECUTION_TIME};
26+
proxy_read_timeout ${PHP_MAX_EXECUTION_TIME};
27+
proxy_send_timeout ${PHP_MAX_EXECUTION_TIME};
28+
" >/etc/nginx/custom.d/proxy_timeout.conf
2129
fi
2230

2331
if ! is-true $DISABLE_GREETING && has-cmd nginx; then

0 commit comments

Comments
 (0)