You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/10/08 08:44:38 UTC

[GitHub] [apisix] laokan commented on issue #5179: request help: jwt功能只做token验证,关闭获取token的接口

laokan commented on issue #5179:
URL: https://github.com/apache/apisix/issues/5179#issuecomment-938459642


   `curl -i -X PUT \
      -H "Content-Type:application/json" \
      -H "X-API-KEY:edd1c9f034335f136f87ad84b625c8f1" \
      -d \
   '{
       "interceptors": [
           {
               "name": "ip-restriction",
               "conf": {
                   "whitelist": ["10.0.0.0/8"]
               }
           }
       ]
   }' \
    'http://apisix:9080/apisix/admin/plugin_metadata/prometheus'`
   
   可以利用 interceptors 把url 保护一下


-- 
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