32 forgejo-aneksajo
Platform-scoped reference stub. This page documents only what matters inside ORINOCO — it does not replace the component’s own documentation.
Status: available · Scope: core · Product name: fixed
32.1 Role in this platform
TODO — a general description of the software stays upstream; the description below is only what it means within ORINOCO.
forgejo-aneksajo is the platform’s foundational component: a soft-fork of Forgejo with first-class git-annex support. It is the collaboration platform every other component hooks into, and it supplies three things the rest of a site depends on — data hosting and versioning (annex-enabled repositories), a single point of authentication and authorization for all components, and a universal API for reaching the hosted data. See the data substrate for why this is treated as the substrate rather than “a tool you may install”, and the integrated whole for how the capabilities meet at it. For its role as the ground every other component hooks into — the single identity and the universal data API that ride along with the hosting — see the platform foundation.
The git-annex model is the key to how it fits. Files that are annexed are stored as pointer files in git, while their content lives in git-annex remotes, addressed by content keys. This is what decouples serving from storing: an instance can act purely as the collaboration and protocol endpoint — content then moves between remotes over local, SSH, or HTTP transport while the instance holds only the pointers — or it can itself be one of those remotes, keeping annex keys in its own store as the repository’s central content host. Which of the two applies is a deployment choice, not something the fork fixes. In its pass-through role the server versions, gates, and even serves content it never stores; in its hosting role it is the durable, central place the bytes live — a role many sites need even when the instance is also a node in a larger federation, and one that scales to petabyte-scale volumes given enough storage. A repository is treated as annex-enabled exactly when its git config carries an annex.uuid; there are no database declarations to keep in sync. DataLad is the client that speaks this protocol against forgejo-aneksajo as the host, so the same content is reachable by a git-annex client on a laptop and by the web UI.
Within ORINOCO it fills the Data substrate capability as the host — with DataLad as the client — and underpins delivery and integration by exposing the shared identity and the universal data API that search, the CMS, and programmatic readers via API & integration build on. Its annex-specific capability groups are:
- detecting annex-enabled repositories and initialising the server side of them;
- serving annexed file content through authenticated web endpoints, including viewing, comparison, and rendered diffs in the UI;
- rendering annexed markup and images via external renderers;
- moving annexed content correctly on the server’s write paths — pull-request merges into the base repository, web upload, and forking, generating, or templating a repository;
- exposing the git-annex HTTP protocol itself (a
p2phttpproxy, repository configuration, and dumb-HTTP object serving) so agit-annexclient can treat the instance as a standard remote; - acting as a content-holding git-annex remote — keeping a repository’s annex keys in the instance’s own store, for deployments that need a central data host, including a node in a federation;
- plain directory listings of annexed content for bulk access.
Everything annex-specific is gated by a single switch: with it off, forgejo-aneksajo behaves like upstream Forgejo; with it on, it requires a git-annex binary on PATH and refuses to start without one. The two code paths run in parallel — it never emulates Git LFS, and existing LFS paths are untouched.
32.2 Configuration this platform exposes
TODO — concrete keys follow with the instance deployment. ORINOCO will surface, at least: whether annex support is enabled (the enabling switch, which also requires git-annex on PATH); which git-annex remotes an instance trusts and over which transports (local, SSH, HTTP, p2phttp); whether the instance also runs as a trusted, content-holding remote, and where its annex store lives; the authentication boundary on annexed-content endpoints; the external renderers used for markup and images; and how the instance is registered as a remote for DataLad clients. Fix and list them here against an actual deployment.
32.3 Out of scope — see upstream
TODO — the git-annex protocol and tooling are git-annex’s own concern; forgejo-aneksajo speaks them, it does not define them. Neither this page nor ORINOCO documents general Forgejo administration (users, organisations, plain repositories without annexes) — link the upstream Forgejo documentation here. Client-side workflows with DataLad belong to the DataLad roster page and the tutorials, not here.