mikyll commented on issue #12346:
URL: https://github.com/apache/apisix/issues/12346#issuecomment-2983245505

   You can try to add this `real-ip` configuration to your route: 
   
   ```json
   "plugins": {
     "real-ip": {
       "source": "http_x_real_ip"
     }
   }
   ```
   
   This will mask the IP only if the header "X-Real-IP" is present. Have a look 
at NGiNX Variables (from [here](https://nginx.org/en/docs/varindex.html) and 
[**here**](https://nginx.org/en/docs/http/ngx_http_core_module.html#var_http_)).
   
   Consider setting also `trusted_addresses` if you want to allow only a 
specific set of IP addresses.


-- 
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-unsubscr...@apisix.apache.org

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

Reply via email to