mirror of
https://github.com/bitbaum/causius.git
synced 2026-12-04 07:29:08 +01:00
- Helpers list themselves (AI service, legal assistant, licensed lawyer) under a name or pseudonym; the same account keeps matters of its own. Directory search and filters through searchkit and listkit, with the typo suite. - A lawyer's admission is submitted privately (evidence sealed per credential), checked by a staff reviewer, and published as an SD-JWT signed with Ed25519: the place in clear, the legal name only as a salted digest. Key at /.well-known/jwks.json; anyone can check at /verify. A lawyer is listed only where verified. - An owner asks a helper about a matter, with or without their personal details; the request is previewed exactly as it will be read. Accepted, the helper becomes a participant; anonymisation is applied in the store, so no route can forget it. A lawyer hands over the checked name with proof. Ending it removes access in the same transaction. - Reviewers are staff/admin accounts, granted by the Grant role workflow. - Who may do what is lib/professions.ts, the one domain file, so Diplodoctor reuses the engine by changing it. - Fixes: the account menu label template; one site URL instead of three, with a dev-only origin so local sign-in works. Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud Co-authored-by: Claude <noreply@anthropic.com>
21 lines
841 B
TypeScript
21 lines
841 B
TypeScript
/** Where Causius is served. The issuer of every attestation, whatever origin a dev server runs on. */
|
|
export const CANONICAL_URL = "https://causius.orangecat.ch";
|
|
|
|
/**
|
|
* Who this deployment is, for accounts (cookie prefix, authenticator and passkey
|
|
* names) and for a reader's own model (the referer it names).
|
|
*
|
|
* Accounts pin their origin rather than reading it from the request (behind
|
|
* Caddy the app sees its internal one), so a local `pnpm dev` on localhost
|
|
* would refuse every sign-in. `CAUSIUS_DEV_URL` names the local origin, and is
|
|
* honoured only outside production: on the box it cannot move the origin.
|
|
*/
|
|
export const SITE = {
|
|
url:
|
|
process.env.NODE_ENV !== "production" && process.env.CAUSIUS_DEV_URL
|
|
? process.env.CAUSIUS_DEV_URL
|
|
: CANONICAL_URL,
|
|
title: "Causius",
|
|
slug: "causius",
|
|
} as const;
|