Simple arithmetics in nginx config

arut nginx-forum at nginx.us
Mon Dec 5 10:27:46 UTC 2011


Hi!
I've recently wrote a simple module nginx-let-module for myself
providing arithmetic (and string op) support in NGINX.
it supports parentheses, hex, simple ops. here's an example:

let $value ( $uid + 0x12 ) * $offset - 100 ;

it's here
https://github.com/arut/nginx-let-module

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,219172,219621#msg-219621



More information about the nginx mailing list