Created
February 11, 2016 11:30
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.