Skip to content

Instantly share code, notes, and snippets.

@moea
Created February 11, 2016 11:30
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moea/01afc49934730e4d240e to your computer and use it in GitHub Desktop.
Save moea/01afc49934730e4d240e to your computer and use it in GitHub Desktop.
Place in .ebextensions to increase Nginx timeout in a non-Docker AWS Elastic Beanstalk Worker Environment
files:
"/tmp/proxy.conf":
mode: "000644"
owner: root
group: root
content: |
proxy_send_timeout 1200;
proxy_read_timeout 1200;
send_timeout 1200;
container_commands:
00-add-config:
command: cat /tmp/proxy.conf >> /var/elasticbeanstalk/staging/nginx/conf.d/elasticbeanstalk/00_application.conf
01-restart-nginx:
command: service nginx restart
@tarkeshwarhashlearn
Copy link

tarkeshwarhashlearn commented Aug 8, 2016

Hey, I have added this to the .ebextensions folder. I still get a 504 timeout. Can you tell me what I may be doing wrong? The only difference in files is
command: cat /tmp/proxy.conf >> /etc/nginx/conf.d/00_elastic_beanstalk_proxy.conf

I tried placing your original code as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment