title: Elastic Beanstalk has not load balancer setting in the configuration menu
body: <p><a href="https://i.stack.imgur.com/hLnKZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hLnKZ.png" alt="enter image description here"></a></p>
  
  <p>I am trying to enable websocket over my Elastic Beanstalk application yet after I follow the instruction here (<a href="https://mitchellsimoens.com/websockets-behind-elastic-beanstalk/" rel="nofollow noreferrer">https://mitchellsimoens.com/websockets-behind-elastic-beanstalk/</a>), I find my application's health is degraded. This is probably because I failed to find load balancer setting in the configuration menu mentioned in this instruction.</p>
  
  <p>Here is a screenshot of my configuration menu:</p>
  
  <p><a href="https://i.stack.imgur.com/PhPZ8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PhPZ8.png" alt="enter image description here"></a></p>
  
  <p>Obviously, the websocket isn't working for my application. In fact the entire application is down after I added the <code>.ebextensions/files.config</code> to my project. Of course, my process.env.PORT is 80 instead of 3000 (I think, not sure where to look).</p>
  
  <p>I've tried these two settings:</p>
  
  <pre><code>files:
    "/etc/nginx/conf.d/01_websockets.conf" :
      mode: "000644"
      owner: root
      group: root
      content : |
        upstream nodejs {
          server 127.0.0.1:process.env.PORT;
          keepalive 256;
        }
        server {
          listen process.env.PORT;
          large_client_header_buffers 8 32k;
          location / {
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $http_host;
            proxy_set_header X-NginX-Proxy true;
  
            # prevents 502 bad gateway error
            proxy_buffers 8 32k;
            proxy_buffer_size 64k;
  
            proxy_pass http://nodejs;
            proxy_redirect off;
  
            # enables WS support
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
          }
        }
  
  files:
    "/etc/nginx/conf.d/01_websockets.conf" :
      mode: "000644"
      owner: root
      group: root
      content : |
        upstream nodejs {
          server 127.0.0.1:80;
          keepalive 256;
        }
        server {
          listen 80;
          large_client_header_buffers 8 32k;
          location / {
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $http_host;
            proxy_set_header X-NginX-Proxy true;
  
            # prevents 502 bad gateway error
            proxy_buffers 8 32k;
            proxy_buffer_size 64k;
  
            proxy_pass http://nodejs;
            proxy_redirect off;
  
            # enables WS support
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
          }
        }
  </code></pre>