Files
vpp/extras/hs-test/resources/nginx/nginx_server.conf
Matus Fabian 05f7137389 hs-test: proxy testing improvements
- nginx and curl timeouts are extended if debug flag is set
- added write-out for curl (outputs extra info after transfer is done)

Type: test

Change-Id: I3f6c336a14cd00b9ae8669d2fa26e00709162100
Signed-off-by: Matus Fabian <matfabia@cisco.com>
2024-09-20 16:06:17 +00:00

44 lines
995 B
Plaintext

master_process on;
worker_rlimit_nofile 10240;
worker_processes 2;
daemon off;
error_log /tmp/nginx/{{.LogPrefix}}-error.log info;
events {
use epoll;
worker_connections 10240;
accept_mutex off;
multi_accept off;
}
http {
keepalive_timeout 300s;
keepalive_requests 1000000;
client_body_timeout {{.Timeout}}s;
client_header_timeout {{.Timeout}}s;
send_timeout {{.Timeout}}s;
sendfile on;
server {
access_log /tmp/nginx/{{.LogPrefix}}-access.log;
listen {{.Port}};
server_name {{.Address}};
root /usr/share/nginx;
index index.html index.htm;
location ~ "/upload/([0-9a-zA-Z-.]*)$" {
alias /usr/share/nginx/upload/$1;
client_body_temp_path /tmp;
client_max_body_size 200M;
dav_methods PUT;
create_full_put_path off;
dav_access all:rw;
}
location /64B {
return 200 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
}
location / {
sendfile on;
}
}
}