Skip to content

Instantly share code, notes, and snippets.

@moea moea/nginx.config
Created Feb 11, 2016

Embed
What would you like to do?
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

This comment has been minimized.

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
You can’t perform that action at this time.