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.

Rewrite documentation around reader tasks

d1f44d838966c0a4762073f12375ec7562582fdf · Keenan Nemetz · 21h ago · parent 9103f6a8

docs/reference/configuration.md −141

@@ -1,141 +0,0 @@
1 # Configuration settings
2
3 Vole loads settings from one TOML file and fills omitted fields with the values
4 below. For common setups and configuration discovery, see
5 [Configuration](../configuration.md).
6
7 ## Settings
8
9 | Setting | Default | What it does |
10 |---|---:|---|
11 | `data_dir` | `"./data"` | Repositories, databases, stored files, logs, and the audit log |
12 | `secrets_key` | `<data_dir>/secrets.key` | Key that seals repository secrets; store backups apart from the database |
13 | `http_addr` | `"127.0.0.1:8080"` | Web and anonymous Git listener; with `https_addr`, ACME challenges and HTTPS redirects |
14 | `https_addr` | empty | Automatic HTTPS listener; setting it enables ACME |
15 | `ssh_addr` | `"127.0.0.1:2222"` | SSH listener in `tcp` mode, and the host and port clone URLs carry |
16 | `ssh_listen` | `"tcp"` | How SSH is served: `"tcp"` by this process, `"socket"` through the system sshd, `"none"` |
17 | `ssh_user` | `"git"` | Account in clone URLs; with `ssh_listen = "socket"`, the account sshd runs the forced command as |
18 | `ssh_public_host_key_file` | empty | sshd's public host key, which a CI job verifies when sshd is the front door |
19 | `ssh_max_connections` | `64` | Simultaneous SSH connections; excess connections close before handshake |
20 | `ssh_max_git_processes` | `16` | Git processes across all SSH connections |
21 | `ssh_handshake_timeout_seconds` | `20` | Maximum time for an SSH handshake |
22 | `ssh_socket` | `/run/vole/ssh.sock` on unix, `%ProgramData%\vole\ssh.sock` on Windows | Socket `vole ssh-exec` reaches `vole serve` on when sshd authenticates; keep it outside `data_dir` |
23 | `instance_name` | `"Vole"` | Instance heading, document titles, and brand-link accessible name |
24 | `instance_repo` | `"vole-instance"` | Repository that supplies instance customization; empty disables it |
25 | `public_url` | empty | Canonical browser origin; HTTPS enables passkey sign-in |
26 | `acme_email` | empty | Contact address sent to the certificate authority |
27 | `acme_domains` | empty | Certificate host names; empty uses the host in `public_url` |
28 | `acme_cache_dir` | `<data_dir>/acme` | ACME account key and certificates |
29 | `acme_directory_url` | Let's Encrypt production | ACME directory; use staging or a private CA for testing |
30 | `dev_login` | empty | Development-only loopback browser identity; requires `dev_only` |
31 | `dev_only` | `false` | Explicit acknowledgment required by `dev_login` |
32 | `open_registration` | `false` | Allow visitors to create accounts with passkeys; requires HTTPS `public_url` |
33 | `open_registration_role` | `"none"` | Instance-wide role for self-registered accounts on public repositories |
34 | `max_blob_bytes` | `104857600` (100 MiB) | Largest single file accepted in a push |
35 | `receive_max_bytes` | `1073741824` (1 GiB) | Largest whole push accepted by Git |
36 | `lfs_object_max_bytes` | `2147483648` (2 GiB) | Largest single LFS object |
37 | `lfs_warn_bytes` | `5242880` (5 MiB) | Warn about a larger binary committed outside LFS; `0` disables the warning |
38 | `repo_max_refs` | `0` (no limit) | Branches and tags in one repository |
39 | `repo_max_metadata_entries` | `0` (no limit) | Issue, change, comment, approval, and release files in one repository |
40 | `repo_max_metadata_bytes` | `0` (no limit) | Total size of metadata files in one repository |
41 | `repo_max_bytes` | `0` (no limit) | Git objects in one repository; further pushes are refused above it |
42 | `repo_max_lfs_bytes` | `0` (no limit) | LFS objects, CI logs, and run artifacts in one repository, checked on upload |
43 | `contributor_writes_per_hour` | `300` | Browser writes per hour for `contributor` accounts; trusted roles are not budgeted |
44 | `git_http` | `true` | Anonymous smart-HTTP clone, fetch, and LFS downloads |
45 | `git_http_max_concurrent` | `16` | Simultaneous anonymous reads; excess requests receive `503` and `Retry-After` |
46 | `git_http_max_per_client` | `8` | Simultaneous reads per client address; `0` disables this per-client rule |
47 | `git_http_client_ip_header` | empty | Trusted-proxy header containing the client address |
48 | `git_http_timeout_seconds` | `600` | Maximum duration of one anonymous clone, including its Git process |
49 | `lease_seconds` | `60` | Time a runner can hold a job without checking in before requeue |
50 | `max_jobs_per_repo` | `0` (no limit) | Jobs one repository may run at once |
51 | `pages_domain` | empty | Site suffix `<repo>.<pages_domain>`; empty disables sites |
52 | `pages_ref` | `"pages"` | Branch served as a repository website |
53 | `pages_procs` | `4` | Git reader processes per active site |
54 | `pages_cache_bytes` | `33554432` (32 MiB) | Memory used to cache site files |
55
56 `max_blob_bytes` applies to each file in a push. `receive_max_bytes` caps the
57 whole incoming pack before refs move.
58
59 ## Anonymous read limits
60
61 Smart HTTP serves anonymous clone, fetch, and LFS downloads. Pushes always use
62 SSH. The default limits bound both total and per-address work:
63
64 ```toml
65 git_http = true
66 git_http_max_concurrent = 16
67 git_http_max_per_client = 8
68 git_http_client_ip_header = "X-Forwarded-For"
69 git_http_timeout_seconds = 600
70 ```
71
72 A request above the global limit receives `503` and `Retry-After` rather than
73 joining a queue. `git_http_max_per_client = 0` disables only the per-address
74 rule. `git_http_timeout_seconds` bounds the whole clone and its Git process.
75
76 Behind a trusted proxy, `git_http_client_ip_header` identifies the header that
77 carries visitor addresses. Vole uses its last entry, which the nearest proxy
78 appends. The same address keys browser sign-in rate limits. Without a proxy,
79 leave the setting empty so clients cannot choose their own limit identity.
80
81 Set `git_http = false` to remove the anonymous HTTP transport. SSH continues to
82 serve Git. HTTP LFS downloads are disabled with the transport, so `git lfs` can
83 report missing objects for clients that relied on them.
84
85 Release tarballs have a separate concurrency bound; the smart-HTTP timeout does
86 not apply to those downloads.
87
88 ## Refused configurations
89
90 Vole validates configuration before opening listeners and reports all detected
91 problems together.
92
93 | Refused when | Reason |
94 |---|---|
95 | `dev_login` without `dev_only` | Credential-free development sign-in must be explicit |
96 | `dev_login` with `https_addr` | Development sign-in cannot use a network HTTPS listener |
97 | `dev_login` with a non-loopback `public_url` | A published origin is not a development instance |
98 | `dev_login` with a non-loopback `http_addr` | Automatic sign-in is limited to the local machine |
99 | `open_registration` without an HTTPS `public_url` | WebAuthn credentials require a secure origin |
100 | `open_registration_role = "runner"` | Self-registration cannot grant CI trust or output publishing |
101 | `open_registration_role = "admin"` | Self-registration cannot grant instance administration |
102 | `public_url` with a user, path, query, or fragment | The value must be an origin to which links can be appended |
103 | `pages_domain` that is not a bare DNS suffix | Site routing matches the request host against this suffix |
104 | `receive_max_bytes` below `max_blob_bytes` | No push could contain a permitted file |
105 | `https_addr` without `acme_domains` or `public_url` | Vole has no certificate host name |
106 | `acme_email` that is not one address | The certificate authority needs one contact address |
107 | `acme_directory_url` that is not HTTPS | Certificate renewal requires a secure directory URL |
108 | A negative size, lease, or limit | Negative resource limits are invalid |
109
110 ## Instance data
111
112 The data directory contains both authoritative state and derived indexes. Do not
113 treat every database as disposable.
114
115 There are two SQLite files. `instance.db` holds everything that has to be
116 restored together: accounts, keys, sessions, access rules, locks, release
117 channels, CI queue and history, and the sealed secret rows.
118 `index.db` is derived and can be rebuilt. `vole admin db list` prints them with
119 that classification.
120
121 Before release channels joined the account database, it was `data/users.db`; see
122 [Upgrade to the instance database](../operations.md#upgrade-to-the-instance-database).
123
124 | Data | Where it lives | Can Vole rebuild it? |
125 |---|---|---|
126 | Repositories | `data/repos/<name>.git` | No; Git is the source |
127 | Issues, changes, approvals, and release pointers | The `vole` branch in each repository | No; Git is the source |
128 | CI runs, steps, queue state, artifact pointers, and contributor CI approvals | `data/instance.db` | No; back it up |
129 | Accounts, roles, keys, passkeys, sessions, access rules, locks, release channels, and sealed secrets | `data/instance.db` | No; back it up |
130 | Web, activity, and search indexes | `data/index.db` | Yes, with `vole admin index rebuild` |
131 | CI attempt logs | `data/logs/` | No; back them up |
132 | LFS files and build artifacts | `data/lfs/` | No; stored by content |
133 | Privileged-action history | `data/audit.log` | No; it is the audit record |
134 | Repository secrets | The `secrets` tables in `data/instance.db`, sealed by `data/secrets.key` | No; back up both and store the key separately |
135 | SSH host key | `data/ssh_host_ed25519_key` | No; back it up |
136 | ACME account key and certificates | `data/acme/` | No, but Vole can request new certificates |
137
138 Git holds repository and collaboration history. SQLite holds accounts, CI state,
139 release channels, and derived indexes. A clone does not contain accounts, permissions, CI history,
140 or stored artifacts. [Operations](../operations.md#back-up-an-instance) turns
141 this inventory into backup and restore procedures.