Skip to the content.

← Back to README · Documentation index

Domains, SSL and WebSocket

Domains and SSL

WebSocket

The Oro websocket server (gos:websocket:server) runs in the ws service and is never published on the host: nginx proxies the /ws location of every configured domain to it and performs the HTTP upgrade, so the browser connects to the same origin it is already browsing (wss:// on an SSL domain, ws:// otherwise).

Orobox owns the addressing and injects it into php-fpm-app, ws, consumer and cron, so a project checkout carrying its own websocket settings in .env-app.local cannot point them at a host that does not exist inside the Compose network:

The frontend port is the published nginx port (ports.https when at least one domain uses SSL, ports.http otherwise; see Host ports). Only one port can be advertised, so a configuration that mixes SSL and plain domains advertises the HTTPS one and the plain domains fall back to no live updates.

Websocket logs come from orobox logs --ws. The connection is not required for the application to work: when the server is down, Oro simply stops rendering the client-side sync code.