Content
You are here:
Using proxy with RemoteIP
Added by Йордан Гигов over 10 years ago
In our local development environment we generally use Tomcat servers and they have something called a Remote IP Valve, which lets us hide them behind a nginx proxy and still get the real IP addresses that are passed on through headers by the proxy server who is in a trusted IP range. It is an implementation of the mod_remoteip for the Apache HTTPD, which we also have setup in preparation for an upcoming project.
From what I was able to gather ActionDispatch::RemoteIp is the equivalent for Ruby on Rails, but being someone who has no experience with Ruby or Rails, how would I add and configure this to work with our OpenProject server. Right now, it always logs all client IPs as that of the proxy.