File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 2222 - [ Ajax Requests] ( #ajax-requests )
2323 - [ Action Monitoring] ( #action-monitoring )
2424 - [ Views] ( #action-monitoring-views )
25+ - [ Reverse Proxy Config] ( #action-monitoring-reverse-proxy-config )
2526 - [ Authentication Monitoring] ( #authentication-monitoring )
2627 - [ Views] ( #authentication-monitoring-views )
2728 - [ How to use in big projects] ( #how-to-use-in-big-projects )
@@ -381,6 +382,21 @@ If you want to monitor users when logging in or logout of your application, you
381382],
382383```
383384
385+ <a name =" action-monitoring-reverse-proxy-config " ></a >
386+ ### Action Monitoring Reverse Proxy Config
387+
388+ If you are using Reverse Proxy (Nginx or Cloudflare), you can use config to get real ip from specifc header like ` X-Real-IP ` or ` X-Forwarded-For ` :
389+
390+ ``` php
391+ /**
392+ * Determines if the application should use reverse proxy headers to fetch the real client IP
393+ * If set to true, it will try to get the IP from the specified header (X-Real-IP or X-Forwarded-For)
394+ * This is useful when using reverse proxies like Nginx or Cloudflare.
395+ */
396+ 'use_reverse_proxy_ip' => true,
397+ 'real_ip_header' => 'X-Forwarded-For',
398+ ```
399+
384400<a name =" authentication-monitoring-views " ></a >
385401### Authentication Monitoring Views
386402
You can’t perform that action at this time.
0 commit comments