Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Restructure documentation around reader tasks

348a43c364fbb04be834af44a7cd43a0931fa280 · Keenan Nemetz · 20d ago · parent b7383c19

Restructure documentation around reader tasks

Group the site by getting started, collaboration, CI, publishing, and administration. Rewrite the guides as executable procedures and move issue formats, merge semantics, configuration defaults, customization, and access-control mechanics into dedicated references.

Verify the quickstart and review flow against a throwaway instance, execute the service recipe, inspect the rendered site, and run the complete verify workflow.

Closes: 01M7B6X6RDYBAP3JVA5SYSA1K8

docs/lfs.md +60−42

@@ -1,74 +1,92 @@
1 1 # LFS and file locking
2 2
3 Large files should not force you onto a hosted service. With Git LFS, Git keeps a
4 small pointer file and Vole stores the actual file on infrastructure you control.
5 Repositories share one storage pool, so the same file is kept only once even if
6 several repositories use it.
3 Git LFS keeps large file contents outside Git history while leaving small
4 pointer files in each commit. Vole stores the contents on your instance and
5 shares identical objects across repositories. File locks prevent concurrent
6 edits to binary files that Git cannot merge.
7 7
8 ## Using LFS
8 ## Track large files
9
10 Install Git LFS once per machine, then track file patterns from a repository
11 clone:
9 12
10 13 ```sh
11 git lfs install # once per machine
14 git lfs install
12 15 git lfs track "*.psd"
13 16 git add .gitattributes art/hero.psd
14 git commit -m "add the hero art"
17 git commit -m "Add the hero art"
15 18 git push origin main
19 ```
16 20
17 git clone http://host/demo.git # LFS files come through the same URL
21 Clone through the repository's normal URL:
22
23 ```sh
24 git clone https://forge.example.com/demo.git
18 25 ```
19 26
20 Writes use the SSH key you already push with. Reads use the normal HTTP clone URL.
21 There is no token to create and no second server to configure.
27 LFS reads use the same HTTP service as anonymous Git reads. Writes authenticate
28 with the SSH key used for Git pushes; no separate token or storage server is
29 required.
22 30
23 A repository can only download the files it actually uses. Knowing the file's hash
24 is not enough, because each repository has its own view of the shared storage.
31 A repository can download only objects referenced by its own history. Knowing an
32 object hash does not grant access to another repository's file.
25 33
26 34 ## Limits and warnings
27 35
36 The instance configuration controls object size and raw-binary warnings:
37
28 38 ```toml
29 lfs_object_max_bytes = 2147483648 # one file; larger files are refused
30 lfs_warn_bytes = 5242880 # warn about raw binaries this big
39 lfs_object_max_bytes = 2147483648
40 lfs_warn_bytes = 5242880
31 41 ```
32 42
33 - If you commit a binary larger than `lfs_warn_bytes` without LFS, Vole accepts
34 the push but warns you and shows the `git lfs track` command.
35 - If you push a pointer whose file was never uploaded, Vole refuses the push,
36 because nobody would be able to check out that commit.
37 - Set `lfs_warn_bytes = 0` to turn the warning off.
43 - Objects above `lfs_object_max_bytes` are refused.
44 - A raw binary above `lfs_warn_bytes` is accepted with a warning suggesting
45 `git lfs track`.
46 - A commit containing an LFS pointer whose object was not uploaded is refused so
47 the commit remains checkoutable.
48 - `lfs_warn_bytes = 0` disables the raw-binary warning.
49
50 See [Set resource limits](configuration.md#set-resource-limits) for per-repository
51 storage quotas.
52
53 ## Lock binary files
38 54
39 ## Cleaning up
55 Lock a path before editing artwork, audio, models, levels, or other files that
56 cannot be merged:
40 57
41 58 ```sh
42 vole admin gc --dry-run # show what is unused
43 vole admin gc # remove it
59 git lfs lock art/hero.psd
60 git lfs locks
61 git lfs unlock art/hero.psd
44 62 ```
45 63
46 `vole admin gc` keeps files that are still reachable from a repository, an archived CI
47 log, or a published build artifact. It also repairs each repository's links into
48 the shared store. Files newer than `--grace` (one hour by default) are kept,
49 because an upload that has not been pushed yet is not garbage.
64 While a lock exists, Vole rejects any push that changes that path. The server
65 enforces the rule even when a client has no hook installed. Current locks also
66 appear on `/<repo>/locks`.
50 67
51 See [Operations](operations.md#clean-up-stored-files) for recovery and scheduling
52 notes.
68 An admin can override a lock, for example after its owner leaves. Vole records
69 the override in `data/audit.log`. Locks are temporary server state in
70 `data/users.db`; they do not travel with clones and must be included in account
71 database backups.
53 72
54 ## Locking files
73 ## Clean up unused objects
55 74
56 Some files cannot be merged by Git: art, audio, models, levels. You can reserve
57 one before editing it. Locking uses the same SSH connection as everything else.
75 Preview and run storage garbage collection from the instance host:
58 76
59 77 ```sh
60 git lfs lock art/hero.psd # nobody else's push can change this path
61 git lfs unlock art/hero.psd # release it
62 git lfs locks # show who holds what
78 vole admin gc --dry-run
79 vole admin gc
63 80 ```
64 81
65 While a file is locked, Vole refuses any push that changes it. The server enforces
66 this, so it works even for a plain `git push` without a client-side hook.
82 Vole retains objects reachable from repositories, archived CI logs, and published
83 build artifacts. The default one-hour grace period protects recent uploads not
84 yet referenced by a push. See [Clean up stored files](operations.md#clean-up-stored-files).
67 85
68 An admin can push past a lock. That override is recorded in `data/audit.log`;
69 otherwise a lock held by someone who has left would block the file forever. The
70 `/<repo>/locks` page shows current locks.
86 ## Next
71 87
72 Locks are not part of a clone. They live beside the account list in
73 `data/users.db`, because they are temporary state and should not come back from
74 history.
88 - [Operations](operations.md#back-up-an-instance) — back up shared objects and
89 lock state.
90 - [Releases](releases.md) — attach large versioned downloads.
91 - [Workflows](workflows.md#artifacts) — store CI outputs in the same object
92 store.