Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am harrisonlo on github.
  • I am harrisonlo (https://keybase.io/harrisonlo) on keybase.
  • I have a public key ASAz45Txf2srhBzo9DEg4X2OM7dTu4wZfn-qgAcxhNrJRQo

To claim this, I am signing this object:

@harrisonlo
harrisonlo / websocket.config
Last active April 11, 2018 04:22
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