Xirsys.API (xturn v2.0.0)

Copy Markdown View Source

Maru HTTP router for XTurn operator REST endpoints.

What problem this solves

Operators need HTTP access to provision credentials, mint TURN REST shared- secret usernames, and inspect server state without touching the STUN/TURN wire protocol. This top-level router applies CORS and request body parsing, then mounts the auth and allocation sub-routers.

Configure the listen port via config :maru, Xirsys.API, http: [port: ...].

RFCs

  • RFC 5766 (TURN service the API provisions credentials for)
  • RFC 8489 (long-term credentials created via /auth)

Summary

Functions

call(conn, _)

init(_)