Allow 2 js apps to connect to each other on localhost, websockets / node / nginx
Budget: $10 – $30 USD
I have two small Node.js apps living on the same VPS:
• A radio-player front end at https://www.eternityreadyradio.com
• A separate audio-stream service that exposes a WebSocket endpoint
They should talk to each other over 127.0.0.1, but the handshake never completes. I need someone to jump in, inspect my current Nginx reverse-proxy setup and the WebSocket implementation, and make the two apps communicate reliably.
Scope
– Review and adjust the Nginx config so it properly upgrades and proxies WebSocket traffic to the stream service.
– Verify the Node.js WebSocket code on both sides and patch anything that blocks a local connection.
– Test end-to-end: when the player loads, the browser must establish a socket, receive live audio data, and play without drops.
Environment details you will see:
Ubuntu 22.04, Nginx 1.24, Node.js 18, ws library. SSH access and current conf files are ready.
Acceptance criteria
1. wss://www.eternityreadyradio.com/socket (or similar) returns a successful 101 Switching Protocols.
2. The player begins streaming from the localhost service with no CORS or mixed-content warnings.
3. All changes are commented in the Nginx config and pushed to Git.
This is a quick fix; the budget is capped at $30, if this job takes over 1 hour, we can discuss budget.
• A radio-player front end at https://www.eternityreadyradio.com
• A separate audio-stream service that exposes a WebSocket endpoint
They should talk to each other over 127.0.0.1, but the handshake never completes. I need someone to jump in, inspect my current Nginx reverse-proxy setup and the WebSocket implementation, and make the two apps communicate reliably.
Scope
– Review and adjust the Nginx config so it properly upgrades and proxies WebSocket traffic to the stream service.
– Verify the Node.js WebSocket code on both sides and patch anything that blocks a local connection.
– Test end-to-end: when the player loads, the browser must establish a socket, receive live audio data, and play without drops.
Environment details you will see:
Ubuntu 22.04, Nginx 1.24, Node.js 18, ws library. SSH access and current conf files are ready.
Acceptance criteria
1. wss://www.eternityreadyradio.com/socket (or similar) returns a successful 101 Switching Protocols.
2. The player begins streaming from the localhost service with no CORS or mixed-content warnings.
3. All changes are commented in the Nginx config and pushed to Git.
This is a quick fix; the budget is capped at $30, if this job takes over 1 hour, we can discuss budget.