混淆配置

This commit is contained in:
dami
2025-12-05 05:48:48 +08:00
parent a0934d9aaf
commit 5c2c614a65
2 changed files with 34 additions and 0 deletions
+12
View File
@@ -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;
}
}
+22
View File
@@ -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
}
}