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

119
Visualizações
Does http keepalive_timeout also apply to upstream?

Given this nginx config:

http {
    keepalive_timeout  65;
    upstream nodejs {
        server 127.0.0.1:8088;
    }
    server {
        listen 8080;
        location / {
            proxy_pass  http://nodejs;
            proxy_set_header   Connection "";
            proxy_http_version 1.1;
            proxy_set_header        Host            $host;
            proxy_set_header        X-Real-IP       $remote_addr;
            proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
        }
    }
}

I understand that the http.keepalive_timeout defines the timeout to the client, while an http.upstream.keepalive_timeout would define the timeout to the upstream.

Does a keepalive_timeout value defined in http also implicitly set the upstream keepalive_timeout when it's not explicitly defined like in the example above, because upstream is part of http?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Finally found a chapter regarding inheritance in the docs. The answer is "yes", the child context inherits directives of the parent context:

In general, a child context – one contained within another context (its parent) – inherits the settings of directives included at the parent level. Some directives can appear in multiple contexts, in which case you can override the setting inherited from the parent by including the directive in the child context.

over 4 years ago · Santiago Trujillo Relatório
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