代码拉取完成,页面将自动刷新
同步操作将从 赵彬鸿H/jsproxy 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
if ($_origin_id = '') {
return 404 'ERROR: origin `$http_origin` is not allowed';
}
if ($http_x_jsproxy) {
return 404 'ERROR: circular dependency';
}
proxy_set_header x-jsproxy 1;
proxy_set_header Connection $http_connection;
set $_level '';
set $_switched '';
set $_url '';
set $_ver '';
set $_ref '';
set $_type '';
set $_mode '';
location = /preflight {
internal;
access_log off;
more_set_headers
'access-control-allow-origin: *'
'access-control-allow-methods: GET,POST,PUT,PATCH,TRACE,DELETE,HEAD,OPTIONS'
'access-control-allow-headers: --raw-info,--level,--url,--referer,--cookie,--origin,--ext,--aceh,--ver,--type,--mode,accept,accept-charset,accept-encoding,accept-language,accept-datetime,authorization,cache-control,content-length,content-type,date,if-match,if-modified-since,if-none-match,if-range,if-unmodified-since,max-forwards,pragma,range,te,upgrade,upgrade-insecure-requests,x-requested-with,chrome-proxy'
'access-control-max-age: 1728000'
;
return 204;
}
# HTTP(S) Proxy
location = /http {
if ($http_access_control_request_headers) {
rewrite ^ /preflight;
}
access_by_lua_file ../lua/http-dec-req-hdr.lua;
proxy_cache my_cache;
proxy_pass $_url;
more_set_headers
'server: $upstream_http_server'
'content-security-policy'
'content-security-policy-report-only'
'x-frame-options'
;
header_filter_by_lua_file ../lua/http-enc-res-hdr.lua;
body_filter_by_lua_file ../lua/http-body-hash.lua;
}
# WebSocket Proxy
location = /ws {
access_by_lua_file ../lua/ws-dec-req-hdr.lua;
proxy_pass $_url;
}
location = /traff {
access_log off;
content_by_lua_block {
ngx.say(ngx.shared.traff:get('stat'))
}
more_set_headers
'access-control-allow-origin: *'
'cache-control: no-cache'
;
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。