You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "13140983173 (via GitHub)" <gi...@apache.org> on 2023/03/29 10:05:54 UTC

[GitHub] [apisix] 13140983173 opened a new issue, #9193: Can limit-req or limit-count use keys from headers like "authorization" or from query parameters like "teant" or whatever?

13140983173 opened a new issue, #9193:
URL: https://github.com/apache/apisix/issues/9193

   ### Description
   
   I found documentation that says only ["remote_addr", "server_addr", "http_x_real_ip", "http_x_forwarded_for", "consumer_name"] could be used as key, refers to https://apisix.apache.org/zh/docs/apisix/plugins/limit-req
   
   ### Environment
   
   - APISIX version (run `2.15.0`):
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] fabrii commented on issue #9193: Can limit-req or limit-count use keys from headers like "authorization" or from query parameters like "teant" or whatever?

Posted by "fabrii (via GitHub)" <gi...@apache.org>.
fabrii commented on issue #9193:
URL: https://github.com/apache/apisix/issues/9193#issuecomment-1502069245

   Is this documented somewhere? I can see in https://apisix.apache.org/docs/apisix/plugins/limit-req/ that the valid values are ["var", "var_combination"]


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Can limit-req or limit-count use keys from headers like "authorization" or from query parameters like "teant" or whatever? [apisix]

Posted by "sdvdxl (via GitHub)" <gi...@apache.org>.
sdvdxl commented on issue #9193:
URL: https://github.com/apache/apisix/issues/9193#issuecomment-1768043316

   > Set the `key_type` to `vars` and you can use the variables you want, for instance, if you want to use a HTTP header, use variable `http_header_name`, where header_name is the name of the HTTP header.
   
   not `vars` but `var_combination`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] tokers commented on issue #9193: Can limit-req or limit-count use keys from headers like "authorization" or from query parameters like "teant" or whatever?

Posted by "tokers (via GitHub)" <gi...@apache.org>.
tokers commented on issue #9193:
URL: https://github.com/apache/apisix/issues/9193#issuecomment-1489554999

   Set the `key_type` to `vars` and you can use the variables you want, for instance, if you want to use a HTTP header, use variable `http_header_name`, where header_name is the name of the HTTP header.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] 13140983173 commented on issue #9193: Can limit-req or limit-count use keys from headers like "authorization" or from query parameters like "teant" or whatever?

Posted by "13140983173 (via GitHub)" <gi...@apache.org>.
13140983173 commented on issue #9193:
URL: https://github.com/apache/apisix/issues/9193#issuecomment-1489774798

   @tokers it works then,thx.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] 13140983173 closed issue #9193: Can limit-req or limit-count use keys from headers like "authorization" or from query parameters like "teant" or whatever?

Posted by "13140983173 (via GitHub)" <gi...@apache.org>.
13140983173 closed issue #9193: Can limit-req or limit-count use keys from headers like "authorization" or from query parameters like "teant" or whatever?
URL: https://github.com/apache/apisix/issues/9193


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Can limit-req or limit-count use keys from headers like "authorization" or from query parameters like "teant" or whatever? [apisix]

Posted by "andresvargasr (via GitHub)" <gi...@apache.org>.
andresvargasr commented on issue #9193:
URL: https://github.com/apache/apisix/issues/9193#issuecomment-2339401764

   @tokers just want to say thanks it  also worked for me using this conf:  `"key_type": "var"` and  `"key": "$http_my_header_name"`
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org