Steps
Put both services behind a reverse proxy with HTTPS
Browsers require a secure context (HTTPS) for WebRTC and the Screen Wake Lock API. Use Nginx, Caddy, Traefik, or a managed platform like Render or Fly.Proxy each service to a hostname you control:
app.your-domain.comto the client on:3000api.your-domain.comto the signaling server on:3001
Upgrade and Connection headers.Set NEXT_PUBLIC_SOCKET_URL and rebuild
In Then rebuild the client image (required because this value is inlined at build time):
.env:Set CLIENT_URL
In This adds your client origin to the server’s CORS allow-list. Without it, browser requests from your domain will be blocked.
.env:CORS note
The server’s allow-list also includes the officialfloe.one origins. Your CLIENT_URL is added on top of these, so browser clients on your domain and on floe.one can both reach your server. If you are running a private fork and want a strict allow-list, remove the hard-coded entries from server/server.js.