This commit is contained in:
2026-05-18 22:56:05 +08:00
parent f49c2b135d
commit 3542990072
2 changed files with 36 additions and 0 deletions

View File

@@ -104,6 +104,16 @@ server {
return ngx.exec(backend)
end
local matched_request_log = {
method = ngx.req.get_method(),
uri = ngx.var.request_uri,
content_length = content_length,
content_type = ngx.var.http_content_type,
user_agent = ngx.var.http_user_agent,
body = body
}
ngx.log(ngx.ERR, "[ai.sggai.site] matched short POST request: ", cjson.encode(matched_request_log) or body)
ngx.status = ngx.HTTP_OK
ngx.header["Content-Type"] = "application/json; charset=utf-8"
ngx.say([[{