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.