Skip to content

Nginx Configuration for Websocket Applications

View on Twitter

💡 Using Nginx as a reverse proxy for your Node.js websocket app?

👉🏼 Add the following config lines to Nginx to make it all work smoothly.

To have Nginx work smoothly with Websocket apps, use proxy_http_version 1.1 and set the following headers with proxy_set_header: Upgrade $http_upgrade, Connection $http_connection, Host $host.

Download the VPS Security Cheatsheet

Use this FREE security cheatsheet to not miss a step when securing your VPS.

A preview of the VPS Security Cheatsheet.

You'll also get tips on building scalable Node.js applications about twice a month. I respect your email privacy. Unsubscribe any time.

You might also like
What Makes a Website Static Read tip
Prune Docker Objects and Free up Space Read tip
Find Out Why Your Site Isn't Fully Secure Read tip