proxy_redirect off; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_http_version 1.1; proxy_set_header Connection ""; # 超时控制 proxy_connect_timeout 20s; proxy_read_timeout 60s; proxy_send_timeout 60s;