webplatform / ops

http://webplatform.github.io/ops/
5 stars 1 forks source link

Setup Etherpad #164

Closed renoirb closed 9 years ago

renoirb commented 9 years ago

Estimated steps

renoirb commented 9 years ago

Unfinished setup available at https://etherpad.webplatform.org/. DNS propagation started today at 16:00.

renoirb commented 9 years ago

Found out that NGINX config has to have WebSocket setup too. I created the file with the following parameters.

    location / {
        proxy_pass             http://upstream_etherpad;
        include                proxy_params;
        proxy_intercept_errors on;

        tcp_nodelay        on;
        proxy_send_timeout 300;
        proxy_buffering    off;

        # WebSocket support plz
        proxy_http_version 1.1;
        proxy_set_header   Upgrade    $http_upgrade;
        proxy_set_header   Connection "upgrade";

    }

The tcp_nodelay and proxy_buffering are key to prevent misbehavior during proxy handshake.

See also this question on StackOverflow