Best nginx config ever?
location /dev/null {
if ($request_method = POST ) {
return 200;
}
} location /dev/null {
if ($request_method = POST ) {
return 200;
}
}202 assumes a possibility of further processing, but /dev/null can offer none.
Besides, for POST it is obviously 202 ACCEPTED
We did have some problems of blocking on large files, which is less than ideal for a /dev/null service.
After dealing with their customer support (which has been super helpful), we are looking to move to a named pipe / FIFO.. Which will non-block and cache lolcally, with a watcher service to push it to their site.
Happy Customer, A+++, would recommend.