From b6094971795648c334bd5c7af66941b8e569ba69 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sat, 23 May 2026 20:32:28 -0400 Subject: [PATCH] docs: document /get_token nginx proxy and NPM override risk LXC 139 NPM proxy host 49 now proxies both /sfu/get and /get_token to lk-jwt-service (port 8070). Note that re-saving via NPM UI will overwrite the conf and require re-adding the location blocks. Co-Authored-By: Claude Sonnet 4.6 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1b35f02..18198cb 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ matrix/ - coturn config: `/etc/turnserver.conf` - LiveKit config: `/etc/livekit/config.yaml` - LiveKit service: `livekit-server.service` -- lk-jwt-service: `lk-jwt-service.service` (binds `:8070`, serves JWT tokens for MatrixRTC) +- lk-jwt-service: `lk-jwt-service.service` (binds `:8070`, serves JWT tokens for MatrixRTC at `/sfu/get` and legacy `/get_token`) - Hookshot: `/opt/hookshot/`, service: `matrix-hookshot.service` - Hookshot config: `/opt/hookshot/config.yml` - Hookshot registration: `/etc/matrix-synapse/hookshot-registration.yaml` @@ -299,6 +299,7 @@ Webhook URL format: `https://matrix.lotusguild.org/webhook/` - JS transformation functions use hookshot v2 API: `result = { version: "v2", plain, html, msgtype }` - The `result` variable must be assigned without `var`/`let`/`const` (QuickJS IIFE sandbox) - NPM proxies `https://matrix.lotusguild.org/webhook/*` → `http://10.10.10.29:9003` +- NPM proxies `/sfu/get` and `/get_token` → `http://10.10.10.29:8070` (lk-jwt-service). Both paths are in `/data/nginx/proxy_host/49.conf` on LXC 139 — **NPM will overwrite these if proxy host 49 is re-saved via the UI; re-add both location blocks after any NPM save** - Proxmox sends Discord embed format: `data.embeds[0].{title,description,fields}` — NOT flat fields - Transform functions are stored as Matrix room state (`uk.half-shot.matrix-hookshot.generic.hook`) and deployed via `hookshot/deploy.sh`