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/reference/configuration.md +110
| @@ -0,0 +1,110 @@ | |||
| 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"` | Authenticated Git and remote-administration listener | | ||
| 16 | | `ssh_max_connections` | `64` | Simultaneous SSH connections; excess connections close before handshake | | ||
| 17 | | `ssh_max_git_processes` | `16` | Git processes across all SSH connections | | ||
| 18 | | `ssh_handshake_timeout_seconds` | `20` | Maximum time for an SSH handshake | | ||
| 19 | | `instance_name` | `"Vole"` | Instance heading, document titles, and brand-link accessible name | | ||
| 20 | | `instance_repo` | `"vole-instance"` | Repository that supplies instance customization; empty disables it | | ||
| 21 | | `public_url` | empty | Canonical browser origin; HTTPS enables passkey sign-in | | ||
| 22 | | `acme_email` | empty | Contact address sent to the certificate authority | | ||
| 23 | | `acme_domains` | empty | Certificate host names; empty uses the host in `public_url` | | ||
| 24 | | `acme_cache_dir` | `<data_dir>/acme` | ACME account key and certificates | | ||
| 25 | | `acme_directory_url` | Let's Encrypt production | ACME directory; use staging or a private CA for testing | | ||
| 26 | | `dev_login` | empty | Development-only loopback browser identity; requires `dev_only` | | ||
| 27 | | `dev_only` | `false` | Explicit acknowledgment required by `dev_login` | | ||
| 28 | | `open_registration` | `false` | Allow visitors to create accounts with passkeys; requires HTTPS `public_url` | | ||
| 29 | | `open_registration_role` | `"none"` | Instance-wide role for self-registered accounts on public repositories | | ||
| 30 | | `max_blob_bytes` | `104857600` (100 MiB) | Largest single file accepted in a push | | ||
| 31 | | `receive_max_bytes` | `1073741824` (1 GiB) | Largest whole push accepted by Git | | ||
| 32 | | `lfs_object_max_bytes` | `2147483648` (2 GiB) | Largest single LFS object | | ||
| 33 | | `lfs_warn_bytes` | `5242880` (5 MiB) | Warn about a larger binary committed outside LFS; `0` disables the warning | | ||
| 34 | | `repo_max_refs` | `0` (no limit) | Branches and tags in one repository | | ||
| 35 | | `repo_max_metadata_entries` | `0` (no limit) | Issue, change, comment, approval, and release files in one repository | | ||
| 36 | | `repo_max_metadata_bytes` | `0` (no limit) | Total size of metadata files in one repository | | ||
| 37 | | `repo_max_bytes` | `0` (no limit) | Git objects in one repository; further pushes are refused above it | | ||
| 38 | | `repo_max_lfs_bytes` | `0` (no limit) | LFS objects, CI logs, and run artifacts in one repository, checked on upload | | ||
| 39 | | `contributor_writes_per_hour` | `300` | Browser writes per hour for `contribute` accounts; trusted roles are not budgeted | | ||
| 40 | | `git_http` | `true` | Anonymous smart-HTTP clone, fetch, and LFS downloads | | ||
| 41 | | `git_http_max_concurrent` | `16` | Simultaneous anonymous reads; excess requests receive `503` and `Retry-After` | | ||
| 42 | | `git_http_max_per_client` | `8` | Simultaneous reads per client address; `0` disables this per-client rule | | ||
| 43 | | `git_http_client_ip_header` | empty | Trusted-proxy header containing the client address | | ||
| 44 | | `git_http_timeout_seconds` | `600` | Maximum duration of one anonymous clone, including its Git process | | ||
| 45 | | `lease_seconds` | `60` | Time a runner can hold a job without checking in before requeue | | ||
| 46 | | `max_jobs_per_repo` | `0` (no limit) | Jobs one repository may run at once | | ||
| 47 | | `pages_domain` | empty | Site suffix `<repo>.<pages_domain>`; empty disables sites | | ||
| 48 | | `pages_ref` | `"pages"` | Branch served as a repository website | | ||
| 49 | | `pages_procs` | `4` | Git reader processes per active site | | ||
| 50 | | `pages_cache_bytes` | `33554432` (32 MiB) | Memory used to cache site files | | ||
| 51 | |||
| 52 | `max_blob_bytes` applies to each file in a push. `receive_max_bytes` caps the | ||
| 53 | whole incoming pack before refs move. | ||
| 54 | |||
| 55 | ## Anonymous read limits | ||
| 56 | |||
| 57 | Smart HTTP serves anonymous clone, fetch, and LFS downloads. Pushes always use | ||
| 58 | SSH. The default limits bound both total and per-address work: | ||
| 59 | |||
| 60 | ```toml | ||
| 61 | git_http = true | ||
| 62 | git_http_max_concurrent = 16 | ||
| 63 | git_http_max_per_client = 8 | ||
| 64 | git_http_client_ip_header = "X-Forwarded-For" | ||
| 65 | git_http_timeout_seconds = 600 | ||
| 66 | ``` | ||
| 67 | |||
| 68 | A request above the global limit receives `503` and `Retry-After` rather than | ||
| 69 | joining a queue. `git_http_max_per_client = 0` disables only the per-address | ||
| 70 | rule. `git_http_timeout_seconds` bounds the whole clone and its Git process. | ||
| 71 | |||
| 72 | Behind a trusted proxy, `git_http_client_ip_header` identifies the header that | ||
| 73 | carries visitor addresses. Vole uses its last entry, which the nearest proxy | ||
| 74 | appends. The same address keys browser sign-in rate limits. Without a proxy, | ||
| 75 | leave the setting empty so clients cannot choose their own limit identity. | ||
| 76 | |||
| 77 | Set `git_http = false` to remove the anonymous HTTP transport. SSH continues to | ||
| 78 | serve Git. HTTP LFS downloads are disabled with the transport, so `git lfs` can | ||
| 79 | report missing objects for clients that relied on them. | ||
| 80 | |||
| 81 | Release tarballs have a separate concurrency bound; the smart-HTTP timeout does | ||
| 82 | not apply to those downloads. | ||
| 83 | |||
| 84 | ## Refused configurations | ||
| 85 | |||
| 86 | Vole validates configuration before opening listeners and reports all detected | ||
| 87 | problems together. | ||
| 88 | |||
| 89 | | Refused when | Reason | | ||
| 90 | |---|---| | ||
| 91 | | `dev_login` without `dev_only` | Credential-free development sign-in must be explicit | | ||
| 92 | | `dev_login` with `https_addr` | Development sign-in cannot use a network HTTPS listener | | ||
| 93 | | `dev_login` with a non-loopback `public_url` | A published origin is not a development instance | | ||
| 94 | | `dev_login` with a non-loopback `http_addr` | Automatic sign-in is limited to the local machine | | ||
| 95 | | `open_registration` without an HTTPS `public_url` | WebAuthn credentials require a secure origin | | ||
| 96 | | `open_registration_role = "admin"` | Self-registration cannot grant instance administration | | ||
| 97 | | `public_url` with a user, path, query, or fragment | The value must be an origin to which links can be appended | | ||
| 98 | | `pages_domain` that is not a bare DNS suffix | Site routing matches the request host against this suffix | | ||
| 99 | | `receive_max_bytes` below `max_blob_bytes` | No push could contain a permitted file | | ||
| 100 | | `https_addr` without `acme_domains` or `public_url` | Vole has no certificate host name | | ||
| 101 | | `acme_email` that is not one address | The certificate authority needs one contact address | | ||
| 102 | | `acme_directory_url` that is not HTTPS | Certificate renewal requires a secure directory URL | | ||
| 103 | | A negative size, lease, or limit | Negative resource limits are invalid | | ||
| 104 | |||
| 105 | ## Data paths | ||
| 106 | |||
| 107 | The data directory contains both authoritative state and derived indexes. Do not | ||
| 108 | treat every database as disposable. [Where data lives](../architecture.md#where-data-lives) | ||
| 109 | identifies each path, its contents, and whether Vole can rebuild it; | ||
| 110 | [Operations](../operations.md) provides backup and restore commands. | ||