1
0

Fix potential real_ip_header is duplicate error (#862)

This commit is contained in:
Nicolas Dorier
2023-12-26 15:18:04 +09:00
committed by GitHub
parent 723eba8f84
commit 885de9496f

View File

@@ -39,9 +39,11 @@
{{ end }}
{{ if $container.Env.REAL_IP_HEADER }}
{{ range $containerNetwork := $container.Networks }}
set_real_ip_from {{ $containerNetwork.IP }};
set_real_ip_from {{ $containerNetwork.IP }};
{{ end }}
{{ if (ne $container.Env.REAL_IP_HEADER "X-Real-IP") }}
real_ip_header {{ $container.Env.REAL_IP_HEADER }};
{{ end }}
{{ end }}
{{ if (eq $serviceName "bitcoin_rtl") }}
location /rtl/ {