Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

261
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!