From 5f69b217e905f64c83fd3a91417cdcdb450969e1 Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Sun, 8 Nov 2026 13:21:27 +0100 Subject: [PATCH] =?UTF-8?q?Samtalene=20p=C3=A5=20samtaler.tomtervel.no,=20?= =?UTF-8?q?chat.=20sender=20videre?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01L5fbDmSQSb6u27EiEuwzoM --- README.md | 2 +- dns/dnsconfig.js | 3 +++ host-caddy/tomtervel.no | 8 +++++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b6071fa..06427bf 100644 --- a/README.md +++ b/README.md @@ -207,7 +207,7 @@ Trying it, beside Kanidm: client for the site (`authorization_code`, `S256`, scopes `openid profile email`, redirect `https://tomtervel.no/auth/callback`) and one for the chat (also `refresh_token`, redirect - `https://chat.tomtervel.no/auth/callback`), and an API key with read + `https://samtaler.tomtervel.no/auth/callback`), and an API key with read and create on users. 5. Moving the sign-in over is then values: `OIDC_ISSUER`, `OAUTH2_CLIENT_ID`/`OAUTH2_CLIENT_SECRET` and the chat's pair set to diff --git a/dns/dnsconfig.js b/dns/dnsconfig.js index f205768..d7495b3 100644 --- a/dns/dnsconfig.js +++ b/dns/dnsconfig.js @@ -31,6 +31,9 @@ D("tomtervel.no", REG_NONE, DnsProvider(DSP_CLOUDFLARE), A("@", KASSE, CF_PROXY_OFF), CNAME("www", "tomtervel.no.", CF_PROXY_OFF), A("id", KASSE, CF_PROXY_OFF), + A("samtaler", KASSE, CF_PROXY_OFF), + // The chat's old name, kept so links from before still land: Caddy + // sends it on to samtaler. A("chat", KASSE, CF_PROXY_OFF), // Rauthy, the Norwegian sign-in, beside Kanidm while the vel tries it. A("konto", KASSE, CF_PROXY_OFF), diff --git a/host-caddy/tomtervel.no b/host-caddy/tomtervel.no index 73cb379..09c9ad7 100644 --- a/host-caddy/tomtervel.no +++ b/host-caddy/tomtervel.no @@ -37,10 +37,16 @@ id.tomtervel.no { } } -chat.tomtervel.no { +# The vel's conversations (cnats). Its old name sends people on, so a +# link or a bookmark from before still lands. +samtaler.tomtervel.no { reverse_proxy 127.0.0.1:3070 } +chat.tomtervel.no { + redir https://samtaler.tomtervel.no{uri} permanent +} + # Rauthy (compose profile `rauthy`): sign-in and account pages in # Norwegian, beside Kanidm until the vel moves over (README.md, "Rauthy"). # Plain http on a loopback port; Caddy holds the certificate. -- 2.56.1