-
-
Save Snawoot/bfcc40a2d180dbd7ada3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 192.168.1.3:8080; | |
server_name _; | |
location / { | |
set_by_lua $digest ' | |
local proxy_build = "2214" | |
local proxy_patch = "115" | |
local proxy_platform = "win" | |
local proxy_key = "ac4500dd3b7579186c1b0620614fdb1f7d61f944" | |
local ts = ngx.now() | |
return ("ps=%d-%d-%d-%d, sid=%s, b=%s, p=%s, c=%s"):format( | |
ts, | |
math.random(0,32767), | |
math.random(0,32767), | |
math.random(0,32767), | |
ngx.md5(("%d%s%d"):format(ts, proxy_key, ts)), | |
proxy_build, | |
proxy_patch, | |
proxy_platform | |
) | |
'; | |
set_by_lua $forwarded_header ' | |
return "for=127.63.24.16\0," | |
'; | |
proxy_pass http://proxy.googlezip.net; | |
resolver 8.8.8.8 8.8.4.4; | |
proxy_set_header Host $http_host; | |
proxy_set_header "Chrome-Proxy" $digest; | |
proxy_set_header Forwarded $forwarded_header; | |
} | |
} | |
server { | |
listen 8080 default; | |
return 403; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment