Hi,
i need to limit concurrent connection count, but not per IP as shown everywhere, but per a variable (user_id for example) set by auth_request_module
Example:
http {
limit_conn_zone $my_userid zone=peruser:40m;
}
server {
auth_request /auth;
auth_request_set $my_userid $upstream_http_x_userid;
location /auth {
...
}
limit_conn peruser 2;
}
.. could it be done somehow?
Thanks
i need to limit concurrent connection count, but not per IP as shown everywhere, but per a variable (user_id for example) set by auth_request_module
Example:
http {
limit_conn_zone $my_userid zone=peruser:40m;
}
server {
auth_request /auth;
auth_request_set $my_userid $upstream_http_x_userid;
location /auth {
...
}
limit_conn peruser 2;
}
.. could it be done somehow?
Thanks