Answer the question
In order to leave comments, you need to log in
How to log ipv6 addresses to nginx in docker?
There are vps with public ipv4 and ipv6 addresses
There is an application launched via docker compose
Before the application, nginx is launched as a reverse proxy (also in a container, nginx-le)
When ipv4 connections come in, they are normally logged with the address saved.
If the connection comes via ipv6, the address 172.22.0.1 remains in the logs.
How can I achieve the preservation of the ipv6 address in the logs?
On the topic, I found https://github.com/nginxinc/docker-nginx/issues/18 and https://github.com/nginx-proxy/nginx-proxy/issues/1283
Apart from the absence of a normal address in the Ipv6 logs, everything works fine
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question