You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On restsql.org, we have nginx in front of the service+sdk. The nginx container is on the bridge network, at 172.17.0.4. It forwards request to the restsql container at 172.17.0.3. All tomcat access logs and restsql service logs are showing 172.17.0.4 as the client request IP, rather than the real requester IP.
On restsql.org, we have nginx in front of the service+sdk. The nginx container is on the bridge network, at 172.17.0.4. It forwards request to the restsql container at 172.17.0.3. All tomcat access logs and restsql service logs are showing 172.17.0.4 as the client request IP, rather than the real requester IP.
Looks like there is an easy solution for tomcat: http://serverfault.com/questions/514551/make-tomcat-use-x-real-ip/692604. nginx proxy location block needs an update with a couple headers.
restsql's org.restsql.service.HttpRequestHelper needs to change to look at the X-Real-IP and/or X-Forwarded-For header.
The text was updated successfully, but these errors were encountered: