When deployed behind a proxy (e.g. Nginx proxy) there is no simple way to access the client's real remote address through env.
To get the real IP, you will have to get x-forwarded-for from :headers.
I am using Clack with Hunchentoot server.
From my understanding, the handler for Huchentoot should use :remote-addr (real-remote-addr req) instead of :remote-addr (remote-addr* req)
When deployed behind a proxy (e.g. Nginx proxy) there is no simple way to access the client's real remote address through
env.To get the real IP, you will have to get
x-forwarded-forfrom:headers.I am using Clack with Hunchentoot server.
From my understanding, the handler for Huchentoot should use
:remote-addr (real-remote-addr req)instead of:remote-addr (remote-addr* req)