TISC Editor (Typst)
Online Typst document editor and API, self-hosted for ISC. Migrated onto the rack from the legacy Infomaniak VPS marcellus on 2026-09-18 (external VPS, history).
| Guest | srv-tisc-editor — LXC 123 on rumba, 192.168.88.36 (static, DHCP-reserved for its MAC on the CCR2004), Debian 13, unprivileged with nesting=1,keyctl=1 (needed for Docker), 1 core / 2 GB / 10 GB |
| Name | srv-tisc-editor.isc3.isc-vs.ch (A + PTR on the CCR2004) plus the short CNAME srv-tisc-editor; the same FQDN is the system hostname, the FreeIPA host (W1, hg-w1-systems, hg-w1-foreman-managed-srv) and the Foreman host. No .isc3 name since 2026-10-30 (history) |
| URL | https://tisc.isc-vs.ch through srv-web01 — reverse_proxy srv-tisc-editor.isc3.isc-vs.ch:8082 |
| TLS | Let's Encrypt certificate for tisc.isc-vs.ch, obtained and renewed by Caddy on srv-web01 (how); nothing to download from Infomaniak, which only hosts the public tisc CNAME rumba.isc-vs.ch record. It depends on that record and on the CCR2004's 80/443 forwards to srv-web01, not on the guest's internal name. Caddy → guest is plain HTTP on the LAN, no certificate (current one valid until 2026-12-17, October 2026) |
| Source | ISC-HEI/tisc-editor, cloned to /root/tisc-editor on the guest; update with ./scripts/publish_new_version.sh (rebuilds the app+docs images, recreates tisc-app-prod/tisc-docs/tisc-nginx; add --db only to (re)initialize Postgres and garage — it drops tisc-db and tisc-garage) |
| Auth | The app is its own Keycloak client (tisc-editor, realm isc) — federates to SWITCH edu-ID directly, no oauth2-proxy gate needed in front of it |
Stack
Five containers on one Docker network (tisc-network), started by docker run from
publish_new_version.sh (no compose file in production):
| Container | Role |
|---|---|
tisc-nginx | nginx, the only one bound to the host — 0.0.0.0:8082->80 — fans out / and /api/ws to the app, /docs/ to the docs site |
tisc-app-prod | Next.js app + Typst compiler, port 3000 (container-internal) |
tisc-docs | Docusaurus documentation, port 3001 (container-internal) |
tisc-db | PostgreSQL 15, port 5432 (container-internal) — the first container publish_new_version.sh leaves alone unless run with --db |
tisc-garage | Garage 2.4.1, port 3900 (container-internal) — the second container publish_new_version.sh leaves alone unless run with --db |
Standing rules
AUTH_URL must be the public origin, or logins silently redirect to the LANAuth.js (the app's auth library) builds every login redirect from the AUTH_URL env var when it is
set, never from the X-Forwarded-* headers a reverse proxy sends. Deployed 2026-09-17 with
AUTH_URL=http://192.168.88.36:8082 — reachable from the VPN, a dead end for every other visitor,
since the /login redirect pointed at a private IP the Internet cannot route to. Fixed 2026-09-18 to
AUTH_URL=https://tisc.isc-vs.ch, with AUTH_TRUST_HOST=true added alongside it (Auth.js's own
recommendation behind any reverse proxy). Full account: history.
/root/tisc-editor/.env on the guest is the one place to change this; re-run
./publish_new_version.sh (no --db) afterwards to pick it up.
Every other backend in provisioning/web/Caddyfile is proxied by raw IP; this one uses
srv-tisc-editor.isc3.isc-vs.ch, resolved by srv-web01 through the CCR2004's static A record. The
vhost survives an IP change once the DHCP reservation follows it, but a missing or broken record
breaks this vhost alone, with no symptom on any other public site. Keep the FQDN: srv-web01
searches the legacy isc3 domain, where srv-tisc-editor no longer exists, so a short name
resolves only through the srv-tisc-editor CNAME (October 2026).
Who can reach it
Public, no proxy-level gate — the app's own Keycloak login is the only barrier. 192.168.88.36:8082
is also reachable directly over the LAN/VPN with no authentication in front of it at all (nginx
inside the guest does not gate anything); same caution as
srv-docker01 — don't rely on the network boundary alone.