Skip to content

Instantly share code, notes, and snippets.

@harrisonlo
Last active April 11, 2018 04:22
Show Gist options
  • Save harrisonlo/732052f1b6f4f90f2849755c688e65ee to your computer and use it in GitHub Desktop.
Save harrisonlo/732052f1b6f4f90f2849755c688e65ee to your computer and use it in GitHub Desktop.
Enable WebSockets on AWS Elastic Beanstalk
container_commands:
enable_websockets:
command: |
sed -i '/\s*proxy_set_header\s*Connection/c \
proxy_set_header Upgrade $http_upgrade;\
proxy_set_header Connection "upgrade";\
' /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