I want to increase the default timeout of nginx in a nodejs environment in AWS elastic beanstalk, i'm following this guide: https://medium.com/swlh/using-ebextensions-to-extend-nginx-default-configuration-in-aws-elastic-beanstalk-189b844ab6ad but it's not working, if i upload my application i receive this error Unsuccessful command execution on instance id(s) 'i-xxxxxxxxxx'. Aborting the operation. any suggestion? i'm trying to use .ebextension and this is the code of my 01-timeout.config file
files:
"/etc/nginx/conf.d/01-timeout.conf":
mode: “000644”
owner: root
group: root
content: |
keepalive_timeout 600s;
proxy_connect_timeout 600s;
proxy_send_timeout 600s;
proxy_read_timeout 600s;
fastcgi_send_timeout 600s;
fastcgi_read_timeout 600s;
container_commands:
nginx_reload:
command: "sudo service nginx reload"
Thanks for any help.
Update now the deploy it's ok, but the timeout doesn't work, it's like before with the timeout of 60s, reading the logs seems that the reload of nginx it's made, this is the message: Command nginx_reload succeeded , any clue of what is the problem?
nginx_reload
but not sure about that. – Olivier Krullfiles:
content by two spaces and also indenting everything under/etc/nginx....
exceptcontainer_commands
– Olivier Krull