Table of Contents
- Settings Reference
- How settings are changed
- What the site is called and where it is
- What is built
- Importing from forges
- Publishing to a forge
- Verification and signatures
- Limits
- Looks
- The folio command and the desktop program
- A build node's own file: ~/.config/folio-node/site
- The server's own file: /etc/folio/folio.conf
- A project's own file: .folio
- Answers for the guided setup
Settings Reference
Every setting a Folio site has: what it is for, what it may be, what it is when nobody set it, and how to change it.
A setting is one line key = value in the site's record (the file
settings/site). Like every change to the record, changing one is
recorded with who did it, with the request they signed, and signed with
the site's key. The pages are written again at once.
How settings are changed
The owner or an administrator changes a setting from their own computer,
with the folio command (from the package folio-client):
folio admin set KEY VALUE
A change is taken only as a request signed with your GPG key, so plain
ssh refuses it; folio makes the request, signs it and sends it. How
folio finds the site is in
The folio command and the desktop program
below. The desktop program does the same with the button
Change a setting..., in the box "Administrator: the site".
KEYis the setting's name from the tables below. Any other name is refused:folio: not a setting: KEY (see: admin settings, and the guide "Running a site").VALUEis everything after it, with the words joined by single spaces. It is one line of ordinary characters, at most 400. Do not put quotes around it: the site does not understand quotes and would keep them.admin set KEY, with no value, removes the setting. The setting then has its default.- The site answers
KEY is now: VALUE, orKEY is no longer set., orKEY is that already; nothing to change.
To see every setting as it is now (this only looks, so plain ssh does):
ssh folio@dur.example.org admin settings
Four settings have commands of their own, because setting them prints
what to do next: publish-to and publish-host-key (both set by admin publish-to), registry-to and watch-forge. admin set refuses them
with folio: that one has a command of its own: admin KEY ADDRESS, and
for the first two folio: that one has a command of its own: admin publish-to ADDRESS [FINGERPRINT].
In the tables, Default is what the site does when the setting is not there. The guided setup writes several settings when it makes the site; those are listed in Answers for the guided setup.
What the site is called and where it is
| Setting | Values | Default | What it does |
|---|---|---|---|
name |
words, for example Devuan User Repository |
none: it is required | the site's name, on every page and in the archive's description. Cannot be removed |
short-name |
a word or two, for example DUR |
the name |
the short form: in page titles, in mail subjects and as the mail's sender name. It also names things outside the site; see below |
address |
an https:// web address, for example https://dur.example.org |
none: it is required | the site's web address. Must start with https:// (http:// is refused). Cannot be removed |
ssh |
for example folio@dur.example.org |
none: it is required | what people give to ssh. Shown in every command on the pages and in mail. Cannot be removed |
ssh-port |
a number, for example 2222 |
22 | the SSH port. If it is not 22, the pages show ssh -p 2222 ... |
distribution |
a word, for example Devuan |
none | which distribution the site is for. Shown on the home page and in the guides |
short-name names things outside the site. It is turned into lower
case, with spaces and _ turned into -, and only letters, digits and
- kept (. and + are dropped too). A run of - becomes one, and a
- at the start or the end is dropped (_dur gives dur, as DUR
does). If nothing is left, the word is folio. That word is:
- the start of the names of the two repositories written to the forge:
dur-recordanddur-site; - part of the file names
setup.shwrites on people's computers:folio-dur.list(andfolio-dur-setup.gpg, for the few moments until the keyring package is installed); - the name of the site's keyring package,
dur-archive-keyring, and of the file it puts there,/usr/share/keyrings/folio-dur-archive-keyring.gpg, but only the first time the package is made: it keeps that name when the word changes later, so that computers which installed it go on getting its new versions.
Without a short-name, the word is made from the name in the same way.
folio-setup shows the word when it asks for the short name, and
admin set short-name says what it is afterwards. A short name that gives
the same word (DUR and dur) changes nothing outside the site.
Changing the word later:
- makes the site send to two new repositories on the forge, from the next sending on, with the whole record and all pages. They must exist there first, unless the forge makes them on the first push (see Forge Setup, part B). The old two are no longer updated;
- makes
setup.shwrite a new sources file. When someone runs it again, it first removes the files an earliersetup.shof the same site wrote under the old word, so that apt does not list the site twice. Computers where it is not run again keep the old file, which goes on working.
admin set short-name says all this when the word changes, for example:
short-name is now: DUR2
The site's word is now dur2 (it was dur): the forge repositories dur2-record and dur2-site, and the file folio-dur2.list that setup.sh writes on people's computers.
setup.sh is written again with it. Whoever runs it again gets the new file, and the old one of this site (folio-dur.list) is removed; computers where it is not run again keep the old one, which goes on working. The site's keyring package keeps the name it has (dur-archive-keyring).
This site publishes to a forge: from now on it sends to dur2-record and dur2-site at ssh://git@forge.example.org/you. They must exist there before the next sending, unless the forge makes them on the first push (the Forge Setup guide, part B). dur-record and dur-site are no longer updated.
The last paragraph only appears when the site publishes to a forge. Best choose the short name at setup and leave it.
address is used in several places, not only on the pages:
- every install command shown, and
setup.shitself (written again at once whenaddress,nameorshort-nameis changed withadmin set, and each time something is published); - where build nodes are told the site's archive is;
- the links in mail, and the default sender address.
Changing address, ssh or ssh-port does not change the server.
The server's name, its sshd and its nginx are yours to change; these
settings only tell the site what to say.
What is built
A release is one version of the distribution (excalibur,
ceres). Every project is built once for each release and each kind of
processor.
| Setting | Values | Default | What it does |
|---|---|---|---|
releases |
release names, with spaces between, for example daedalus excalibur freia ceres |
none: it is required | the releases every project is built for. Each import queues one build per release and kind of processor. Cannot be removed. Each name is lower-case letters, digits and - (at most 40), named once, and a release of a distribution the site has a mirror and keys for (see Other distributions); anything else is refused with what is missing. A release added is built at once: see below. A release left out is taken out of the archive: see below |
architectures |
kinds of processor, with spaces between, for example amd64 arm64 |
amd64 |
the kinds of processor built for. A build node only takes builds for the kinds it was let in for. A kind added is built at once, a kind left out is taken out of the archive: see below |
suffix-RELEASE |
for example suffix-excalibur = +devuan6 |
none | what is added to a version for that release, so that each release's build has a version of its own (1.2+devuan6). One setting per release |
mirror |
an https:// address, for example https://pkgmaster.devuan.org/merged |
https://pkgmaster.devuan.org/merged for Devuan, https://deb.debian.org/debian for Debian |
where build nodes get the packages of the site's own distribution (distribution), and its list of files (used to find what a build needs). It must start with https://; http:// is refused. For Devuan use pkgmaster.devuan.org, which has a valid https certificate; deb.devuan.org is a round-robin whose mirrors do not |
distribution-RELEASE |
a distribution's name, one word, for example distribution-trixie = debian |
the site's own distribution (the first word of distribution, in lower case: devuan) |
which distribution that release is of, for a release of another distribution than the site's own |
mirror-DIST |
an https:// address, for example mirror-debian = https://deb.debian.org/debian |
Devuan's and Debian's are known (as for mirror); none for any other |
where build nodes get that distribution's packages. For the site's own distribution it comes before mirror |
keyring-DIST |
a package's name, for example keyring-ubuntu = ubuntu-keyring |
devuan-keyring for Devuan, debian-archive-keyring for Debian; none for any other |
the package of that distribution's archive keys, which every build system for its releases gets, so that apt in it can check the distribution's mirror |
suffix- followed by any name is accepted; one for a release the site
does not build for does nothing.
Adding a release or a kind of processor to releases or
architectures builds every package for it at once: each package's
newest upload is queued for it, as rebuild PACKAGE queues it (for a
project that names its own releases, only if it names that one).
admin set says how many, and for which packages:
releases is now: daedalus excalibur freia ceres gryphon
Each package's newest upload is queued for gryphon too: 3 builds, of hello, treasure, unryu. (Uploads that wait for review still do.)
or Nothing is queued for gryphon: no package's newest upload needs building for it. Each build stays the upload of whoever imported it; the
build says who asked (rebuilt-by) and keeps their signed request.
Asking for it approves nothing: what is published follows the same rules
as for any build. A package that already has a build of its newest upload
for that release and kind of processor (queued, being built, waiting, or
made) is not built again, so a release named again gets back what was
made for it.
A project with its own debian/ folder can name fewer releases in
debian/control (X-Folio-Releases: excalibur ceres); a project
without one, in its .folio (releases = excalibur ceres). Each must be
one of the site's releases; any other is refused at import:
X-Folio-Releases: unknown 'hurd' (this site builds for: daedalus excalibur freia ceres),
or from .folio:
.folio releases: unknown 'hurd' (this site builds for: daedalus excalibur freia ceres).
The package's page shows them ("Built for").
Leaving a release or a kind of processor out of releases or
architectures stops it being built, and takes what the archive holds of
it out at once. admin set says first what goes, for example:
releases is now: daedalus freia ceres
excalibur will no longer be built, and its packages will be taken out of the archive: hello, treasure.
or, when there is nothing of it, excalibur will no longer be built; the archive holds nothing of it. The release's folder under apt/dists/ goes
(for a kind of processor, its binary-... folders), apt on people's
computers no longer finds it, and its builds are no longer marked
published. Nothing else in the archive is touched: should anything go
wrong, the archive is left as it was and admin set says so. A build for
a release left out cannot be made again (this site no longer builds for excalibur). Named again later, the release gets back what was built for
it, where that is still a package's newest upload; for the rest, rebuild PACKAGE. Its builds that had not started yet, or were waiting, are not
made: they are marked superseded (this site no longer builds for excalibur), and admin set says how many (2 builds for it that had not started will not be made.).
When a distribution has a new release, or ends one
Once a day the site asks the mirror of each distribution it builds for
what its releases are now: which release is oldoldstable, oldstable,
stable, testing and unstable, as the mirror's dists/stable/Release
and the others say (Codename: excalibur), and whether it still has each
release the site builds (dists/RELEASE/Release). The owner and every
administrator (those who turned mail on) are mailed, once each:
-
a new release: the mirror names a release the site has never seen, and does not build for. Devuan's and Debian's next release appears as
testingfirst. The mail gives the commands to build for it, with a guess at the addition to versions from the site's others (+devuan6,+devuan7give+devuan8):admin set suffix-gryphon +devuan8 admin set releases daedalus excalibur freia ceres gryphon -
a release that changed: a release the site builds is now another of those than it was (
freia is now devuan's stable release, on its release day), or none of them any more (its end is near; the mail gives the command to stop building it); -
a release that has gone: the mirror answers that it no longer has a release the site builds (404, while it answers for the others). The distribution has ended it and moved it to its archive of old releases; builds for it can no longer be made. The mail gives the
admin set releaseswithout it.
Nothing is changed by itself. Adding a release or leaving one out
stays an administrator's own signed admin set releases: every change of
the site comes from someone's signed request, and what a mirror says is
only advice. The first check of a distribution only notes what there is
(so a site is not told of every old release at once); a release that has
gone is told even then. Each Release file is fetched over https from the
address the settings give, at most 4 KiB of it, and only names of the
form a release has are taken.
admin releases shows what the last check found (checking again first if
it is more than an hour old):
Checked 2026-11-27 10:00 UTC (folio-releases; admin releases shows it).
devuan (https://pkgmaster.devuan.org/merged):
oldoldstable chimaera not built
oldstable daedalus built
stable excalibur built
testing freia built
unstable ceres built
A release the site builds that is none of those shows as (none), one
gone from the mirror as (gone), and one the mirror could not be asked
about as (?). What the check keeps is in DATA/cache/releases/ (it can
be deleted at any time; the next check is then a first one again).
Other distributions
A site can build for releases of other distributions made the same way
as its own (a Debian archive: dists/RELEASE/Release, main, apt's
keys): Debian beside Devuan, for example. Release names must differ
between them, as each release is one folder of the archive
(apt/dists/trixie). For Debian, whose mirror and keys Folio knows:
admin set distribution-trixie debian
admin set suffix-trixie +deb13
admin set releases daedalus excalibur freia ceres trixie
For any other, name its mirror and the package of its archive keys first:
admin set mirror-ubuntu https://archive.ubuntu.com/ubuntu
admin set keyring-ubuntu ubuntu-keyring
admin set distribution-noble ubuntu
admin set suffix-noble +ubuntu24.04
admin set releases daedalus excalibur freia ceres noble
(A release is refused until its distribution has both:
noble is a release of ubuntu, and the site has no mirror for ubuntu: admin set mirror-ubuntu https://....) The daily check covers each of them as it
does the site's own; a distribution whose mirror has no stable and
testing (Ubuntu's has none) is still checked for releases that have gone.
One mirror serves every kind of processor: a distribution that keeps some
kinds on another mirror (Ubuntu's arm64 is on ports.ubuntu.com) can be
built for the kinds its mirror has. A build system gets the release's
main part only (as for Devuan and Debian): a project that needs a package
from another part (Ubuntu's universe) cannot be built there.
Each build node checks a release's mirror with that distribution's own
archive keys, and no others: it needs the distribution's keyring package
installed (debian-archive-keyring for Debian, which the folio-node
package recommends; ubuntu-keyring for Ubuntu), whose file is
/usr/share/keyrings/DIST-archive-keyring.gpg, or, where the keys are in
another file, that file named in the node's settings (keyring-DIST = FILE). A node without them hands
the build back: see the Build Node Guide.
The pages name a release of another distribution with it: trixie (Debian) on a package's page ("Built for"), in the list of builds and on
each build's page, and the home page says Community packages for Devuan and Debian. setup.sh on people's computers knows the releases the site
builds for, and takes the one the computer's own apt uses (see the
Public Guide).
Importing from forges
A forge is a server that keeps git repositories, such as a Forgejo. The site imports projects from there; it keeps no repositories of its own.
| Setting | Values | Default | What it does |
|---|---|---|---|
sources |
address beginnings, with spaces between, for example https://forge.example.org/ |
any public address | when someone types watch or follow, the address must begin with one of these |
source-limit-mb |
a number from 1 to 999999999 | 2000 | the largest project the site takes, in megabytes, counted twice: the repository as it is fetched (a fetch that brings in more is stopped while it comes in, and the copy is not kept), and the project's files unpacked, as the commit's tree names them (checked before anything is unpacked) |
source-limit-files |
a number from 1 to 999999999 | 50000 | the most files, links and folders a project's tree may have; checked before anything is unpacked |
source-limit-seconds |
a number from 1 to 999999999 | 300 | the longest the site spends reading one commit of a project (listing and unpacking its tree, reading its packaging, writing the packaging for a project without any, making its download) |
import-per-pass |
a number from 1 to 999999999 | 5 | the most repositories new to the site that one timed import (and one watch) imports from the forge accounts members have the site watch; the rest wait for the next pass. The site's own packages are looked at first and are not counted. A pass also begins no new repository after 10 minutes |
import-sandbox |
off, or nothing |
nothing (the sandbox is required) | where the server cannot make the sandbox a project is read in (user namespaces not allowed), a project is refused unless this is off. off weakens the site: projects, and the timed import's projects from watched accounts too, are then read as the user folio with only limits on their size and time. Only the owner can set it to off; the activity log notes every project read so, and admin verify warns while it is set |
About sources:
- It is compared as plain text with the beginning of the address, so the
/at the end matters:https://forge.example.org/does not matchhttps://forge.example.org.evil.example/. - It binds everyone, the owner and administrators included.
- It is only checked when
watchorfollowis typed. Watches and follows that exist already go on, and it does not apply toadmin watch-forgeoradmit.
About import-per-pass: each pass imports the repositories that wait by
turns, the oldest-seen of each watched account, then the next of each, so
that one account with many new repositories cannot keep another's back.
The site's lock is let go of after each repository, so doors and builds
are not held for the whole pass. Only one timed import runs at a time.
About import-sandbox: a commit's signature is checked before any of its
files are read, so on a site that requires signatures (signatures = required) a stranger's unsigned project is refused before it reaches the
sandbox at all. Turn the sandbox off only on a server where user
namespaces cannot be allowed, and turn it back on with admin set import-sandbox (with nothing after it).
Which forge account each member has the site watch is not a site setting:
it belongs to their account (watch, unwatch).
Looking at a whole forge has commands of its own (admin watch-forge ADDRESS, admin unwatch-forge). It shows in the settings as
watch-forge, with watch-forge-by naming who switched it on. It only
lists what it finds; each project waits to be let in. See
Forge Setup.
Publishing to a forge
The site can write a copy of itself to a forge. These settings have
their own commands; see Forge Setup. The guided setup
writes them too, when the forge is named there (FOLIO_FORGE_* in
Answers for the guided setup), into the
site's first change.
| Setting | Set with | Default | What it does |
|---|---|---|---|
publish-to |
admin publish-to ADDRESS FINGERPRINT, after admin publish-to ADDRESS showed the forge's host key to compare; removed with admin publish-off |
none: nothing is sent | where the record, the pages and the archive are kept as two git repositories |
publish-host-key |
with publish-to, by the same command; removed with it |
none | the fingerprint of the forge server's SSH host key that an administrator confirmed (SHA256:...). The site sends only to a server that shows that key. On a restored or moved site the key is fetched again and kept only if it has this fingerprint |
registry-to |
admin registry-to https://forge.example.org/you; removed with admin registry-off |
none | the forge account whose package list gets the published packages. Needs a token (admin registry-token < FILE) |
Verification and signatures
| Setting | Values | Default | What it does |
|---|---|---|---|
verify |
yes or required |
not set: each build is made once | yes: every build that worked is built again by a second node and the packages are compared byte for byte; the Builds page shows "verified" or "not reproducible", and the build is published either way. required: only what came out the same is published |
signatures |
required |
required on a site made by Folio's setup; not set on a site made before it was the default, which keeps what it had |
required: a project is only imported if its newest commit is signed with a PGP key that is on the account of whoever imports it, its maintainer, or a co-maintainer. An unsigned commit, and one signed by any other key, are refused, also by the timed import, and imports shows why. The signature is checked before any of the commit's files are listed or read. Not set: unsigned commits are taken |
signing-key-lifetime |
a number of days, at least 1 | 365 | how long a signing key of the site's key lasts. The signing keys are made and renewed on the owner's computer, by folio-site-key, which does not read this setting: give it the same number (folio-site-key --lifetime DAYS new-signing-key, or ... renew; 365 if left out). folio-key import checks it: a bundle whose new or renewed signing keys run out after another number of days (a day either way), or never, is refused, and nothing is taken. The server uses the setting to tell when renewal is due: 60 days before a signing key runs out (a quarter of the lifetime, if that is less). On a site of the older kind, whose master is still on the server, folio-key makes and renews signing keys with it there. See The site's key |
signing-key-overlap |
a number of days | 14 | how long a new signing key is published in the keyring package before it takes over from the old one (folio-site-key new-signing-key, brought with folio-key import). Computers that upgrade at least once in that time notice nothing. 0: it takes over at the next publishing |
The two signing-key- settings are refused unless they are numbers:
folio: signing-key-lifetime is a number of days, and for a lifetime of
0, folio: a signing key lasts at least a day. A changed lifetime counts
from the next new or renewed signing key on; a changed overlap, from the
next new signing keys the server takes (folio-key import) on.
About verify:
- It needs at least two build nodes. The second build is only ever given to a different node than the first.
- With
requiredand one node, nothing is ever published. - With
yesand one node, the second builds stay in the queue for ever; harmless, but they show.
About signatures:
- A new site has
signatures = required. To take unsigned commits:admin set signatures(with nothing after it). To require signed ones again:admin set signatures required. - The PGP key commits are checked against is the account's GPG key, the
same one that signs its requests. It is given when the account is
vouched for; a person replaces it with
folio pgp set(see the Member Guide), and an administrator sets it for an account that has none withfolio admin pgp NAME. - The refusals are
unsigned commit: this site requires signed commits (git commit -S)andthe commit is signed, but by a key that is on none of its maintainers' accounts (pgp set; for someone who has no key or lost theirs, an administrator sets one: admin pgp NAME).
Which part needs approval is not a setting: it is always main, and only
an administrator or the owner approves (see the
Owner and Administrator Guide).
Limits
How many times one account may do one kind of thing in an hour, so that one key (stolen, or a script gone wrong) cannot flood the site. Administrators and the owner are not limited. Each is a number. An attempt the site refuses usually counts too.
| Setting | Default | Counts |
|---|---|---|
limit-comment |
30 | comments |
limit-vote |
200 | votes given and taken back |
limit-flag |
30 | flags set and taken off |
limit-request |
10 | requests |
limit-vouch |
20 | people let in |
limit-import |
30 | imports: follow, watch, fetch and admit, each counted where it is taken |
limit-key |
20 | SSH keys added or removed, and PGP keys set or removed |
limit-mail |
6 | mail set and mail confirm |
Example: admin set limit-comment 60. Past the limit, the site answers
folio: that is 30 times in an hour, the most this site allows for this; try again later.
limit- followed by any name is accepted; only the names above do
anything. (limit-upload, which an earlier Folio had for watch,
follow and pushes, counts nothing now: a push to the site is refused
whatever the count, and imports count under limit-import.)
Other limits are fixed:
| What | At most |
|---|---|
| a comment | 5000 bytes, and one a second |
| a reason for a flag, a request, a suspension, erasing or declining | 300 bytes (a plain letter is one byte, an accented one two or more) |
| keywords on one package | 20 |
| open requests by one person on one package | 1 |
| an account's or a node's name | 3 to 32 characters, not starting with . or - |
| a command typed over plain ssh | 4096 bytes |
| an entry of the activity log | 500 bytes (the log is started again past 5 MB, the old one kept as activity.log.1) |
| a PGP key | 100,000 bytes |
| a setting's value | 400 characters |
| one file in an imported project | 20 MB |
| a path in an imported project, or a link's target | 4096 characters |
| the newest commit's own text (its author, committer, message and signature) | 1048576 bytes |
a field of debian/control |
16384 characters, and at most 1000 packages in it |
Looks
| Setting | Values | Default | What it does |
|---|---|---|---|
search |
yes |
not set: no search box | shows the search box. The web server must run the search program, which needs fcgiwrap |
logo |
site-logo.svg, .png, .jpg, .gif or .webp |
none: the site's name in words | the picture at the top of every page. See below |
logo-text |
words, for example User Repository |
none | words shown beside the logo. Only shown when there is a logo |
logo-themed |
yes |
not set: the logo keeps its own colours | the logo takes its colour from the theme a visitor chose. Only works when the logo is site-logo.svg, drawn in one colour |
mark |
site-mark.svg |
none | the emblem shown large and faint behind the home page's opening. Always takes the theme's colour |
favicon |
site-icon.ico, .png or .svg |
Folio's own small mark | the small picture a browser shows on the tab |
artwork-credit |
words, for example Devuan logo: Dyne.org foundation, CC BY-SA 4.0 |
none | a line in the footer crediting the pictures' author |
If you install fcgiwrap after the site was made, set search yourself.
Changing a picture
A picture is a file in the site's static folder under a fixed name, and
a setting that says it is in use.
| Picture | File name | Setting |
|---|---|---|
| logo | site-logo.svg (or .png, .jpg, .gif, .webp) |
logo |
| emblem | site-mark.svg (only .svg) |
mark |
| favicon | site-icon.ico (or .png, .svg) |
favicon |
-
On the server, copy the new picture into place, as the user
folio:sudo -u folio cp /path/to/my-logo.svg /srv/folio/site/static/site-logo.svg -
From your own computer, tell the site:
folio admin set logo site-logo.svgYou should see
logo is now: site-logo.svg. If the setting said that already, the site answerslogo is that already; nothing to change.The new file is in use anyway: reload the page. -
To have no picture:
folio admin set logo(no value).
The site refuses a name other than the fixed ones, and a file that is not
there yet (folio: there is no file site-logo.svg in the site's static folder yet; copy it there first).
| Setting | Values | Default | What it does |
|---|---|---|---|
mail-from |
an address, for example noreply@dur.example.org |
noreply@ and the host name in address |
the address notifications come from |
The folio command and the desktop program
These are files on the computer of each person who takes part, not on
the site. The folio command (package folio-client) and the desktop
program both read them.
A person may use several sites (their own and a test site, say), each with its own keys. Each is kept in a file of its own.
~/.config/folio/sites/NAME says where the site NAME is, and with
which keys. NAME is its short name on this computer: 1 to 64 letters,
digits, -, _ and dots, not starting with a dot or a dash, not ending
in .new. The desktop
program writes it when you click Site..., Add... or Edit...;
folio --add-site NAME ... writes it too; you can also write it yourself.
The file is readable by you only, in a folder only you may enter:
[site]
name=Dur
ssh=folio@dur.example.org
port=22
key=
web=https://dur.example.org
| Line | Means | If left out |
|---|---|---|
name |
the name shown for the site (in the desktop program's title and list, and by folio --sites) |
the short name |
ssh |
what is given to ssh to reach the site, folio@HOST |
required: the site cannot be used |
port |
the site's SSH port | 22 |
web |
the site's web address. It must start with https://: the site's SSH keys are fetched from there |
required |
key |
the SSH key file to come in with, with its full path, for example /home/you/.ssh/id_ed25519_folio |
ssh's own choice of key |
pgp |
the fingerprint of the GPG key to sign with | the key ~/.config/folio/pgp names (a site with gnupg must have pgp) |
gnupg |
the GnuPG home folder that key is in, with its full path, for keys kept apart from ~/.gnupg. gpg is given it as GNUPGHOME, for this site alone |
~/.gnupg (or whatever GNUPGHOME says) |
ca |
the site's own certificate authority: its certificate, a PEM file, normally ~/.config/folio/trust/NAME/ca.pem. For a site whose https certificate is not from a public authority. Every https fetch for this site trusts this authority alone (curl --cacert FILE --capath /dev/null) |
the system's certificate authorities |
ca-sha256 |
that certificate's SHA-256 fingerprint (AB:CD:...), as the person confirmed it with the site's owner. The file is checked against it before each use; a file that changed is refused |
required with ca: without it the authority is not trusted |
Each line is name=value, with no spaces around the =. Write ca and
ca-sha256 with folio --add-site NAME ... --ca FILE --ca-sha256 FINGERPRINT or the desktop program, which check the fingerprint before
they keep the file.
~/.config/folio/current holds one line: the short name of the site
in use. folio --use NAME and the desktop program's Use this site
write it. folio --site NAME (or FOLIO_SITE=NAME) uses another site for
one command. If it is missing and there is only one site, that one is
used.
~/.config/folio/site was the one site file before there were
several. If it is there and there is no site default, folio and the
desktop program make it the site default (byte for byte), name it as
the site in use if none is, and then remove it.
~/.config/folio/pgp holds one line: the fingerprint of your GPG key.
folio-mykeys pgp writes it when it makes the key; folio-mykeys use FINGERPRINT chooses another of your keys. It counts for a site whose file
has no pgp= line (and no gnupg= line).
~/.config/folio/trust/NAME/ holds what is trusted for the site
NAME, for it alone: its certificate authority (ca.pem), if it has
one, and its own SSH keys (hosts/HOST, HOST the host name from the
ssh line). Two sites with the same host name never share them.
folio and the desktop program both use these files. When the SSH keys
are missing they fetch them over https from WEB/ssh-host-keys, before
they connect, and from then on let ssh trust those keys and no others.
There is no "trust it the first time": a server that shows another key
is refused before anything is sent. Once kept, the keys are not replaced
by themselves. When the server shows a key that is not among them, both
programs fetch the list again; if the site's pages list other keys now
(the site moved to a new server, or its owner changed its keys), they
show the fingerprints trusted until now and the ones listed now, and ask
whether to trust the new ones. Without a terminal, folio --site NAME --host-keys asks.
A build node's own file: ~/.config/folio-node/site
This file is on each build node, in the build user's home (or where
FOLIO_NODE_CONF says), not on the site. Each line is name = value,
with one space on each side of the =. The
Build Node Guide
says how to write it.
| Line | Means | If left out |
|---|---|---|
ssh |
what the node gives to ssh to reach the site | required |
port |
the site's SSH port | 22 |
key |
the node's private SSH key file, with its full path | ssh's own choice of key |
web |
the address of the site's pages, https:// only: the node fetches the site's SSH keys from there |
required (unless FOLIO_NODE_HOST_KEYS is set) |
pgp |
the fingerprint of the node's GPG key, which signs its claims and results | required |
gnupg |
the keyring that holds that key | GNUPGHOME, or gpg's own |
site-key-fpr |
the site's own key: its master's fingerprint, 40 or 64 hexadecimal digits, as the site's home page and its setup.sh show it (check it with the site's owner). The node gives a build the site's archive only with the archive's key file (ARCHIVE/archive-keyring.gpg), and only if its master is this one |
required: without it the node builds nothing (folio-node check shows the master of the key the site's archive has now, to compare) |
site-ca |
the site's own certificate authority: its certificate, a PEM file, with its full path. For a site whose https certificate is not from a public authority. It is trusted for the site's host name alone, and alone for it: the node's fetches from there (curl --cacert FILE --capath /dev/null), git for a source there (http.sslCAInfo), and apt in the build system for the site's archive (Acquire::https::HOST::CAInfo). The mirror and every other host keep the system's authorities. See A site with its own certificate authority |
the system's certificate authorities |
site-ca-sha256 |
that certificate's SHA-256 fingerprint (AB:CD:...), as you confirmed it with the site's owner (openssl x509 -noout -fingerprint -sha256 -in FILE shows the file's). The file is checked against it when the node starts, before each fetch with it and at the start of each build; a file that changed is refused |
required with site-ca: without it the node does not start |
limit-time, limit-memory, limit-processes, limit-disk |
the limits on each build | 4h, 4G, 1024, 20G (see Limits) |
The server's own file: /etc/folio/folio.conf
This file belongs to the server, not to the site, so it is not in the record and not in a backup. The guided setup writes it. It is edited by hand, as root, and rarely.
| Line | Example | What it does |
|---|---|---|
data |
data = /srv/folio |
the folder the site lives in |
generate |
generate = /usr/bin/folio-generate |
the program that writes the pages |
keys |
keys = /srv/folio/private/sshd/authorized_keys |
the file sshd reads to know who may come in. The site writes it again whenever accounts, keys or nodes change |
signer |
signer = sudo -n -u folio-sign /usr/lib/folio/folio-signer |
how the user folio asks the site's signer for a signature, word by word. Written by folio-install (and --migrate). A site without it is of the older kind: the user folio holds its keys |
signer-home |
signer-home = /var/lib/folio-sign |
the signer's own folder: its keys (readable by it alone), its log sign.log and the list secrets of the signing keys it holds (readable by all) |
input-time |
input-time = 60 |
how many seconds the door waits for what comes on standard input with a signed request (a comment, a key) to end; one that does not end in time is refused (what came with the request did not end within 60 seconds). Without it: 60 |
result-time |
result-time = 3600 |
how many seconds the node door waits for a build node's result to come whole; one that does not is refused, and the build is given out again. Without it: 3600 (an hour) |
local-sources |
local-sources = yes |
for trying Folio out only: lets follow take a folder on the server itself instead of a forge address. Leave it out on a real site |
keyscan |
keyscan = /usr/bin/ssh-keyscan |
for Folio's own tests only: the program that fetches the forge server's SSH host key (admin publish-to). Leave it out: the site uses ssh-keyscan |
getent |
getent = /usr/bin/getent |
for Folio's own tests only: the program that lists the addresses of the forge's name (getent ahosts), each of which is asked for its host key. Leave it out: the site uses getent |
A project's own file: .folio
A project without a debian/ folder is packaged by the site, from what
its own files say. A file called .folio in the project's top folder
settles what the site cannot work out. It is optional.
Each line is key = value, with exactly one space on each side of the
=. A line written version=1.2 is not read. See also the
Member Guide.
| Line | What it settles | Without it |
|---|---|---|
version = 1.2 |
the version. It wins over anything the source says | a VERSION file, the Makefile, meson.build, CMakeLists.txt, configure.ac, pyproject.toml, or a #define NAME_VERSION; otherwise 0 (and the import is 0+r57.gabc1234) |
description = One line |
the short description, at most 76 characters | the Comment= of NAME.desktop, or the first sentence of the README |
build-depends = flex, bison |
packages the build needs, with commas between, added to those the site found | only what the site found |
depends = fonts-dejavu-core |
packages the program needs to run, beyond its libraries | only its libraries |
build-system = make |
which to use: make, meson, cmake, autotools or python |
found from meson.build, CMakeLists.txt, configure.ac or configure, a Makefile, pyproject.toml or setup.py, in that order |
build = make release |
the command that builds it | the build system's usual way |
install = make install DESTDIR=$(D) PREFIX=/usr |
the command that installs it. $(D) is the folder the package is made from |
the build system's usual way. A Makefile without an install rule: the program, its .desktop file, man page and icons are installed by the project's name |
tests = yes |
run the project's tests during the build | the tests are not run |
section = utils |
the package's section | misc |
homepage = https://... |
its home page | none |
license = GPL-3 |
its licence. It wins over what the LICENSE file says | read from the LICENSE (or COPYING) file; otherwise unknown |
architecture = all |
all if nothing in it is compiled; any otherwise |
any if there is C, C++, Rust, Go, Vala, Fortran or assembler source; otherwise all |
releases = daedalus excalibur |
which of the site's releases it is built for, separated by blanks, as X-Folio-Releases does for a project with its own debian/ folder. A name the site does not build for is refused: .folio releases: unknown 'hurd' (this site builds for: ...); anything but plain names: .folio: releases must be names of releases, separated by blanks (for example: releases = daedalus excalibur) |
every release the site builds for |
Answers for the guided setup
folio-install (which runs folio-setup) takes an answer from the
environment whenever it is there, and does not ask that question. With
--yes they ask nothing at all and take the suggestion for everything
else; FOLIO_OWNER_KEY, FOLIO_OWNER_PGP and FOLIO_SITE_KEY have no
suggestion and must be given. FOLIO_SEARCH, FOLIO_VERIFY, FOLIO_CERT_EMAIL,
FOLIO_RESTORE and FOLIO_SITE_KEY_PUBLIC are never asked: they count only when they are in the
environment. folio-install also takes --data FOLDER (where the site lives;
default /srv/folio).
For example:
sudo FOLIO_NAME="Devuan User Repository" FOLIO_SHORT_NAME=DUR \
FOLIO_OWNER_KEY=/home/you/.ssh/id_ed25519.pub \
FOLIO_OWNER_PGP=/home/you/me.asc \
FOLIO_SITE_KEY=/home/you/folio-key-init-20261126-101500.bundle /usr/lib/folio/folio-install
With the forge too, unattended (the fingerprint is the one you read on the forge's server itself, never one copied from what the site is shown):
sudo FOLIO_OWNER_KEY=/home/you/.ssh/id_ed25519.pub FOLIO_OWNER_PGP=/home/you/me.asc \
FOLIO_SITE_KEY=/home/you/folio-key-init-20261126-101500.bundle \
FOLIO_FORGE_SSH=ssh://git@forge.example.org/you \
FOLIO_FORGE_HOST_KEY=SHA256:Jh1mH0kq3u... \
FOLIO_FORGE_WEB=https://forge.example.org/you \
FOLIO_FORGE_TOKEN_FILE=/home/you/folio-token \
/usr/lib/folio/folio-install --yes
With --yes the setup cannot wait while you add the site's key on the
forge: it checks once, says
the site may NOT write there yet: ..., and the site sends by itself
once the key is added (folio admin publish-key shows it).
| Variable | The question it answers | Suggestion |
|---|---|---|
FOLIO_SITE_KEY |
the site's key: the bundle folio-site-key init NAME made on the owner's computer (or, for a site set up again from the forge alone under the master it had, the bundle folio-site-key emergency made). Its signing keys go to the signer; the master never comes to the server |
none |
FOLIO_NAME |
the site's name | Package repository |
FOLIO_SHORT_NAME |
its short name | the name |
FOLIO_ADDRESS |
its web address (must start with https://) |
https:// and the server's host name |
FOLIO_SSH |
what people give to ssh | folio@ and the server's host name |
FOLIO_SSH_PORT |
the SSH port | 22 |
FOLIO_DISTRIBUTION |
the distribution | Devuan |
FOLIO_RELEASES |
the releases | daedalus excalibur freia ceres |
FOLIO_SUFFIXES |
the additions to versions, as release=addition words |
for Devuan with exactly those four releases: +devuan5 to +devuan8; otherwise none |
FOLIO_MIRROR |
the distribution's mirror (must start with https://) |
for Devuan: https://pkgmaster.devuan.org/merged; otherwise none |
FOLIO_LOGO |
the logo file | the Devuan logo that comes with Folio; none for none |
FOLIO_LOGO_THEMED |
colour an .svg logo by the theme: yes or no. Only asked for an .svg logo |
yes |
FOLIO_LOGO_TEXT |
words beside the logo | with the Devuan logo, the site's name without its first word, if that word is Devuan or the distribution; otherwise none. none for none |
FOLIO_MARK |
the emblem file (.svg only) |
the Devuan emblem that comes with Folio; none for none |
FOLIO_FAVICON |
the favicon file | none (Folio's own mark is used); none also means none |
FOLIO_OWNER |
the owner's account name | the name of whoever ran sudo; owner if there is none |
FOLIO_OWNER_NAME |
the owner's real name | none |
FOLIO_OWNER_KEY |
the owner's public key file | none: it must be given |
FOLIO_OWNER_PGP |
the owner's GPG public key file, armored (folio-mykeys export > me.asc, or gpg --armor --export). Every change is signed with the account's own GPG key, so the site is not made without it |
none: it must be given |
FOLIO_FORGE_SSH |
the forge's SSH address the site writes itself to, up to the account: ssh://git@forge.example.org/you, or ssh://git@forge.example.org:2222/you. Recorded as publish-to |
none (-): the site publishes to no forge, and the setup says how to set it up later |
FOLIO_FORGE_HOST_KEY |
the fingerprint (SHA256:...) of the forge server's SSH host key, as you compared it with the server's own. The key the server shows is trusted only if it has this fingerprint; without it, or with another, nothing is sent to the forge. Recorded as publish-host-key |
none: the forge is left for later |
FOLIO_FORGE_WEB |
the account's web address on the forge, for its package list: https://forge.example.org/you. Recorded as registry-to |
none: no package list |
FOLIO_FORGE_TOKEN_FILE |
a file whose one line is an access token of the forge with package: Read and Write and nothing else. Kept in /srv/folio/private/forge/registry-token until the first sending hands it to the site's signer (/var/lib/folio-sign/forge/registry-token); never shown or logged |
none: asked for (from a file, or pasted, not shown); with --yes, left for later (admin registry-token < FILE) |
FOLIO_SEARCH |
yes to show the search box |
yes if fcgiwrap is installed |
FOLIO_VERIFY |
yes or required |
not set |
FOLIO_HTTPS |
certbot, files or front (a Folio site is always served over https; there is no plain-http option) |
front |
FOLIO_CERT, FOLIO_CERT_KEY |
the certificate files, for files |
none |
FOLIO_CERT_EMAIL |
the address for certbot's notices. Never asked for; without it certbot registers without an address | none |
FOLIO_RESTORE |
a backup file: bring a site back from it instead of making a new one. Only into a folder with no site: if /srv/folio holds one, the setup stops at once and changes nothing. nginx is given the restored site's own address |
none |
FOLIO_SITE_KEY_PUBLIC |
with FOLIO_RESTORE: the owner's own copy of the site's public key (gpg --armor --export MASTER, or any bundle folio-site-key made). Merged in with what the forge's record knows, so that a change of the key made after the backup (an emergency, revoked old keys) is not lost. Never asked |
none: the forge's record alone |
The setup also writes architectures = amd64, signatures = required,
and, when the Devuan pictures are used, artwork-credit.
For people working on Folio, these change where its programs look:
| Variable | What it changes |
|---|---|
FOLIO_CONF |
the server's settings file, instead of /etc/folio/folio.conf |
FOLIO_GENERATE |
the page generator folio-setup uses |
FOLIO_STATIC, FOLIO_GUIDES |
where folio-setup takes the stylesheets and the guides from |
FOLIO_SENDMAIL |
the mail program folio-mail hands messages to, instead of /usr/sbin/sendmail |
FOLIO_SSH_HOST_KEYS |
the folder folio-generate reads the server's SSH keys from (ssh_host_ed25519_key.pub, ssh_host_ecdsa_key.pub, ssh_host_rsa_key.pub) to publish them as ssh-host-keys, instead of /etc/ssh |
Using a site
Setting one up
Running one
- Owner and Administrator Guide
- Backup and Restore
- Settings Reference
- Command Reference
- Troubleshooting
Checking one