Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

286
Visualizações
Nginx and AWS API Gateway with X-Forwarded-For header not showing the real IP

I have the following stack: Ngnix -> API Gateway -> Lambda (Integration Type)

On the Nginx configuration file, I am using the following directive: proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

When I'm checking logs,

  1. In API Gateway logs I see the load balancer IP
  2. In Lambda logs I do have access to the X-Forwarded-For header

My question: How can I add to API Gateway Logs the X-Forwarded-For header with its value, or even better, replace sourceIP value with the one we are forwarding.

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda