1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| server { listen 1080; access_log logs/proxy.log; resolver 114.114.114.114; #指定DNS服务器IP地址 server_name proxy.ifan.tutulis.com; proxy_connect; proxy_connect_allow 80 443; proxy_connect_connect_timeout 10s; proxy_connect_read_timeout 10s; proxy_connect_send_timeout 10s; # forward proxy for non-CONNECT request location / { # proxy_pass $scheme://$http_host$request_uri proxy_pass http://$host; proxy_set_header Host $host;
proxy_buffers 256 4k; proxy_max_temp_file_size 0;
proxy_connect_timeout 10s; } }
|