mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
混淆配置
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# 混淆配置
|
||||
body_filter_by_lua_block {
|
||||
local obf = require("resty.obf.obf")
|
||||
obf.process_response()
|
||||
}
|
||||
|
||||
location / {
|
||||
if (!-e $request_filename) {
|
||||
rewrite ^(.*)$ /index.php/$1 last;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
# 混淆配置-代理
|
||||
body_filter_by_lua_block {
|
||||
local obf = require("resty.obf.obf")
|
||||
obf.process_response()
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8989;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header Accept-Encoding "";
|
||||
proxy_hide_header Content-Encoding;
|
||||
gzip off;
|
||||
proxy_set_header If-Modified-Since "";
|
||||
proxy_set_header If-None-Match "";
|
||||
|
||||
header_filter_by_lua_block {
|
||||
ngx.header.content_length = nil
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user