mirror of
https://github.com/bytedance/g3.git
synced 2026-05-17 03:57:11 +00:00
34 lines
685 B
Nginx Configuration File
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;
|
|
}
|
|
}
|
|
}
|