diff --git a/Production/nginx.tmpl b/Production/nginx.tmpl index fecbdf2..b393c66 100644 --- a/Production/nginx.tmpl +++ b/Production/nginx.tmpl @@ -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/ {