Yes.
First, configure X-Forwarded-For
in NGINX.
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Then, get the IP in the panel app via:
doc.session_context.request.headers.get('X-Forwarded-For').split(", ")[:-2]
Yes.
First, configure X-Forwarded-For
in NGINX.
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Then, get the IP in the panel app via:
doc.session_context.request.headers.get('X-Forwarded-For').split(", ")[:-2]