-
-
Save eugenehp/fa2f1aab585f3574e2badd72c8f9da2c to your computer and use it in GitHub Desktop.
Patches AWS Elastic Beanstalk's default nginx configuration to support websockets, for use with an Application Load Balancer.
This file contains hidden or 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
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