shreemaan-abhishek commented on issue #10417:
URL: https://github.com/apache/apisix/issues/10417#issuecomment-1785287687

   This might help you:
   
   
![image](https://github.com/apache/apisix/assets/61597896/6db4a230-0619-4f0a-abce-316e275c2956)
   
   <details>
   <summary>Here is the curl command if you need it</summary>
   <br>
   
   ```bash
   curl "http://127.0.0.1:9180/apisix/admin/routes"; -X PUT \
     -H "X-API-KEY: ${ADMIN_API_KEY}" \
     -d '{
       "id": "lb-ip",
       "uri": "/get",
       "plugins": {
         "real-ip": {
           "source": "http_x_forwarded_for",
           "trusted_addresses": ["127.0.0.0/24"]
         },
         "response-rewrite": {
           "headers": {
             "remote_addr": "$remote_addr",
             "remote_port": "$remote_port"
           }
         }
       },
       "upstream": {
         "type": "roundrobin",
         "nodes": {
           "httpbin.org:80": 1
         }
       }
     }'
     ```
     
   </details>


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to