Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion test/bin/start_webserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ mkdir -p "${IMAGEDIR}"
cd "${IMAGEDIR}"

NGINX_CONFIG="${IMAGEDIR}/nginx.conf"
# See the https://nginx.org/en/docs/http/ngx_http_core_module.html page for
# a full list of HTTP configuration directives
cat > "${NGINX_CONFIG}" <<EOF
worker_processes 8;
worker_processes 32;
events {
}
http {
Expand All @@ -26,6 +28,18 @@ http {
root ${IMAGEDIR};
autoindex on;
}

# Timeout during which a keep-alive client connection will stay open on the server
# Default: 75s
keepalive_timeout 300s;

# Timeout for transmitting a response to the client
# Default: 60s
send_timeout 300s;

# Buffers used for reading response from a disk
# Default: 2 32k
output_buffers 2 1m;
}
pid ${IMAGEDIR}/nginx.pid;
daemon on;
Expand Down