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

260
Visualizações
Change Timeout of Gunicorn Elastic Beanstalk

I am trying to change the timeout for Gunicorn on a Python 3.7 Amazon Linux 2 (Version 3.1) Elastic Beanstalk deploy. My Procfile looks like:

web: gunicorn --bind :8000 --workers 3 --threads 2 --timeout 300 application.application:application

But I still seem to be getting the default 30 second timeout.

My nginx config in .ebextensions looks like:

files:
  "/etc/nginx/conf.d/timeout.conf" :
    mode: "000644"
    owner: root
    group: root
    content: |
      keepalive_timeout 600;
      proxy_connect_timeout 600;
      proxy_send_timeout 600;
      proxy_read_timeout 600;
      send_timeout 600; 
      fastcgi_send_timeout 600; 
      fastcgi_read_timeout 600;

Any help would be appreciated.

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

0

Since you are using Amazon Linux 2 (AL2), setting nginx options through /etc/nginx/conf.d/timeout.conf is not supported. This would explain why they don't have any effect.

For AL2, nginx settings should be set using .platform/nginx/conf.d/ folder as show here.

Thus, you could try the following. Have a file .platform/nginx/conf.d/myconfig.conf with the content of:

keepalive_timeout 600;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600; 
fastcgi_send_timeout 600; 
fastcgi_read_timeout 600;
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