Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thomasmichaelwallace/45b2b66b18412058f766e5239104b741 to your computer and use it in GitHub Desktop.
Save thomasmichaelwallace/45b2b66b18412058f766e5239104b741 to your computer and use it in GitHub Desktop.
Elastic Beanstalk extension command to increase the nginx upstream proxy timeout.
container_commands:
extend_proxy_timeout:
command: |
sed -i '/\s*location \/ {/c \
location / { \
proxy_connect_timeout 300;\
proxy_send_timeout 300;\
proxy_read_timeout 300;\
send_timeout 300;\
' /tmp/deployment/config/#etc#nginx#conf.d#00_elastic_beanstalk_proxy.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment