From 4213fa7a2dcf36fffaeef25b9f08b49278a06497 Mon Sep 17 00:00:00 2001 From: jochens Date: Wed, 30 Sep 2026 12:55:24 +0200 Subject: [PATCH] plex: provide its API to the mesh as plex-api kometa, tautulli and ombi reached plex by a hand-typed address - a public name, a HAL network gateway - which the mesh cannot keep true. Plex now provides plex-api at mesh scope and serves the server's port and scheme, so the mesh tells each consumer where it is. The port is written out rather than inferred: plex listens on five ports (the server and four discovery ones), and the mesh only infers a provision's port when a module listens on exactly one. No grants and no provisioner: the credential is the server owner's X-Plex-Token, which plex.tv issues and the mesh cannot mint. The operator accepts it as the pair credential for each consumer (ADR 0092); each consumer's step checks it against the server and writes nothing it refuses. --- modules/plex/module.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/plex/module.json b/modules/plex/module.json index 71e54a5..917486f 100644 --- a/modules/plex/module.json +++ b/modules/plex/module.json @@ -1,6 +1,18 @@ { "module": "plex", "version": "1", + "provides": [ + { + "name": "plex-api", + "scope": "mesh" + } + ], + "serves": { + "plex-api": { + "scheme": "http", + "port": 32400 + } + }, "capabilities": [ "container-runtime" ],