Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

117
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda