location ~* ^/nginx-download/([a-z0-9\.\-]*)/(.*)$ {
resolver 127.0.0.1; # DNS сервер
set $srv $1;
set $fn $2;
proxy_set_header Host $srv;
proxy_set_header Referrer $srv;
proxy_set_header User-Agent 'User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20100101 Firefox/6.0.2';
proxy_hide_header Content-Disposition;
proxy_pass http://$srv/$fn;
proxy_max_temp_file_size 0;
}
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)