[relay] Attribution: GET /about serves the CPAL credit and the source URL #2

Merged
mnovak merged 1 commits from fix/relay-attribution into main 2026-11-24 07:39:35 +01:00
Owner

CPAL-1.0 §15 counts running the relay for other people as distributing it, so the users of a running relay are owed its source and the Exhibit B credit. Until now only the README carried them.

  • GET /about (and GET /) returns static JSON: Built on Domi, https://aula.marek-novak.cz, Copyright (c) 2026 Marek Novák, CPAL-1.0, and the source URL.
  • The source URL is LUDUS_RELAY_SOURCE_URL, defaulting to this repository, so a modified relay names its own copy. A value that is not an http(s) URL stops the process, like the other variables.
  • The credit is fixed and cannot be configured.
  • Version 0.1.1. relay/src and relay/test are byte-for-byte copies of Ludus services/relay at 9081ed0 (Ludus G9.130); Ludus's drift test moves its pin to v0.1.1.

Tests: 67/67 relay (pnpm test), pnpm typecheck clean. The two new tests in server.test.ts failed with a planted wrong phrase and source.

CPAL-1.0 §15 counts running the relay for other people as distributing it, so the users of a running relay are owed its source and the Exhibit B credit. Until now only the README carried them. - `GET /about` (and `GET /`) returns static JSON: *Built on Domi*, https://aula.marek-novak.cz, *Copyright (c) 2026 Marek Novák*, `CPAL-1.0`, and the source URL. - The source URL is `LUDUS_RELAY_SOURCE_URL`, defaulting to this repository, so a modified relay names its own copy. A value that is not an http(s) URL stops the process, like the other variables. - The credit is fixed and cannot be configured. - Version 0.1.1. `relay/src` and `relay/test` are byte-for-byte copies of Ludus `services/relay` at `9081ed0` (Ludus G9.130); Ludus's drift test moves its pin to `v0.1.1`. Tests: 67/67 relay (`pnpm test`), `pnpm typecheck` clean. The two new tests in `server.test.ts` failed with a planted wrong phrase and source.
mnovak added 1 commit 2026-11-24 07:37:40 +01:00
mnovak merged commit bd95a1d2c7 into main 2026-11-24 07:39:35 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mnovak/LudusPublic#2