I
I
Ivan2020-07-30 01:47:57
Nginx
Ivan, 2020-07-30 01:47:57

How to find out the external ip (ip of the visitor) in a docker container?

nginx schema on host -> nginx in docker. How to find external ip in nginx in docker?
Not a host address, but a visitor address. Docker in production.
other than how to convey in the title and then count, thoughts do not come.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2020-07-30
@ky0

other than how to convey in the title and then count, thoughts do not come.

This is how it is done, sobssno:
https://nginx.org/en/docs/http/ngx_http_realip_mod...

V
Vitaly Karasik, 2020-07-30
@vitaly_il1

except how to convey in the title and then count the thought does not come

Absolutely correct - this is the standard method with any reverse proxy.
e.g.
https://www.digitalocean.com/community/questions/h...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question