配置文件
http {
server {
resolver 192.168.31.1;
resolver_timeout 5s;
listen 8888;
access_log /var/log/proxy.access.log;
error_log /var/log/proxy.error.log;
location / {
proxy_pass $scheme://$host$request_uri;
proxy_set_header Host $http_host;
proxy_buffers 256 4k;
proxy_max_temp_file_size 0;
proxy_connect_timeout 30;
proxy_cache_valid 200 302 10m;
proxy_cache_valid 301 1h;
proxy_cache_valid any 1m;
}
}
}