traffic-accounting-nginx-module
traffic-accounting-nginx-module copied to clipboard
Feature request
Hi,
I have taken a look at your module, it looks interesting. Any chance of a feature request? http_accounting_skip when non zero skip accounting for this request. This is similar to proxy_cache_skip and its kin.
This would allow for usage in say cached responses or certain cases to be ignored.
Hi @splitice , Can you give more conf snippet to show the usage?
Something like -
map $srcache_fetch_status $acct {
"HIT" 1
default "" #or 0
}
location / {
....
http_accounting_skip $acct;
...
}
This should probably take place in the log phase,