g3/scripts/coverage/g3proxy/nginx.conf
2025-06-25 13:41:01 +08:00

36 lines
786 B
Nginx Configuration File

worker_processes auto;
worker_cpu_affinity auto;
pid /tmp/nginx.pid;
events {}
http {
access_log /tmp/nginx.access.log;
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;
client_body_timeout 120s;
proxy_buffering off;
proxy_request_buffering off;
proxy_read_timeout 120s;
client_body_temp_path /tmp/nginx;
}
}
}