g3/scripts/coverage/g3bench/nginx.conf
2024-12-05 14:22:28 +08:00

34 lines
685 B
Nginx Configuration File

worker_processes auto;
worker_cpu_affinity auto;
pid /tmp/nginx.pid;
events {}
http {
access_log off;
server {
server_name httpbin.local;
listen 2080;
listen [::]:2080;
listen 2443 ssl http2;
listen [::]:2443 ssl http2;
# requires nginx 1.25.1
# http2 on;
ssl_certificate httpbin.local.pem;
ssl_certificate_key httpbin.local-key.pem;
location / {
proxy_pass http://127.0.0.1:80/;
client_max_body_size 10m;
proxy_buffering off;
proxy_request_buffering off;
client_body_temp_path /tmp/nginx;
}
}
}