docs(streaming): document the session manager settings
This commit is contained in:
@@ -105,6 +105,10 @@ ENABLE_CACHE_PREWARM=true
|
||||
# ---------------------------------------------------------------------------
|
||||
# HOME_RECENT_HOURS=24
|
||||
# ENABLE_CGI=false
|
||||
# Streamed play for games that can't run in a browser, such as Java applets.
|
||||
# Off unless both are set. See docs/09-deployment/environment-variables.md.
|
||||
# STREAMING_API_URL=http://flashpoint-session-manager:8080
|
||||
# STREAMING_API_TOKEN=
|
||||
# Serve the built frontend from the backend (on by default in production)
|
||||
# SERVE_FRONTEND=true
|
||||
|
||||
|
||||
@@ -64,6 +64,9 @@ services:
|
||||
# Application
|
||||
- HOME_RECENT_HOURS=${HOME_RECENT_HOURS:-24}
|
||||
- ENABLE_CGI=${ENABLE_CGI:-false}
|
||||
# Streamed play for games that can't run in a browser (off unless both are set)
|
||||
- STREAMING_API_URL=${STREAMING_API_URL:-}
|
||||
- STREAMING_API_TOKEN=${STREAMING_API_TOKEN:-}
|
||||
# OpenTelemetry
|
||||
- OTEL_ENABLED=${OTEL_ENABLED:-false}
|
||||
- OTEL_EXPORTER_OTLP_ENDPOINT=${OTEL_EXPORTER_OTLP_ENDPOINT:-}
|
||||
|
||||
@@ -56,6 +56,9 @@ services:
|
||||
# Application
|
||||
- HOME_RECENT_HOURS=${HOME_RECENT_HOURS:-24}
|
||||
- ENABLE_CGI=${ENABLE_CGI:-false}
|
||||
# Streamed play for games that can't run in a browser (off unless both are set)
|
||||
- STREAMING_API_URL=${STREAMING_API_URL:-}
|
||||
- STREAMING_API_TOKEN=${STREAMING_API_TOKEN:-}
|
||||
# OpenTelemetry
|
||||
- OTEL_ENABLED=${OTEL_ENABLED:-false}
|
||||
- OTEL_EXPORTER_OTLP_ENDPOINT=${OTEL_EXPORTER_OTLP_ENDPOINT:-}
|
||||
|
||||
@@ -116,6 +116,21 @@ and API share one origin.
|
||||
| `FRONTEND_DIST_PATH` | `<backend>/../frontend/dist` | Location of the built frontend (rarely needed) |
|
||||
| `RUFFLE_DATA_PATH` | `/app/data/ruffle` in production | Where Ruffle is installed. Must sit on a mounted volume, or an in-app update is lost when the container is recreated |
|
||||
|
||||
**Streaming:**
|
||||
|
||||
Games that can't run in a browser, such as Java applets, can be streamed from a
|
||||
server-side container by a separate session manager (flashpoint-ultimate-server).
|
||||
The backend asks it which games are streamable and starts sessions for players.
|
||||
Browsers reach each stream at `/stream/<id>/` on this site, so the reverse proxy
|
||||
in front of flashpoint-web must route `/stream/` to the session manager,
|
||||
including WebSocket upgrades. Saves for streamed games are kept in each
|
||||
browser's IndexedDB.
|
||||
|
||||
| Variable | Default | Description |
|
||||
| --------------------- | ------- | ---------------------------------------------------------------------- |
|
||||
| `STREAMING_API_URL` | - | Session manager's internal API, e.g. `http://flashpoint-session-manager:8080` |
|
||||
| `STREAMING_API_TOKEN` | - | Token the session manager expects. Streaming is off unless both are set |
|
||||
|
||||
**OpenTelemetry:**
|
||||
|
||||
| Variable | Default | Description |
|
||||
|
||||
Reference in New Issue
Block a user