Skip to content
Snippets Groups Projects
Commit be29f122 authored by Eric Frias's avatar Eric Frias
Browse files

Force nginx to parse and store the request body in a way that it can be logged

parent 84e6c0ff
No related branches found
No related tags found
2 merge requests!66Merge develop to master for release,!59Force nginx to parse and store the request body in a way that it can be logged
Pipeline #112171 passed
......@@ -49,13 +49,16 @@ http {
server_name _;
location / {
access_log /var/log/drone/access_log api_log buffer=32k flush=5s;
#access_log /var/log/drone/access_log api_log buffer=32k flush=5s;
# switch to this to log in jsonl format instead
access_log /var/log/drone/access_log.json json_log buffer=32k flush=5s;
proxy_pass http://drone;
# Allow fast streaming HTTP/1.1 pipes (keep-alive, unbuffered)
proxy_http_version 1.1;
proxy_request_buffering off;
client_body_buffer_size 128k; # Adjust size as needed
proxy_request_buffering on;
client_body_in_single_buffer on;
proxy_buffering off;
#proxy_set_header forwarded 'by=\"_$hostname\";$for_addr;proto=$scheme;host=\"$http_host\"';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment