Nextcloud 35 on the LNMP stack (nginx, PHP-FPM 8.4, MariaDB 11.8) with
Redis, as a Keel layer on lnmp:
bt-layer nextcloud --parent lnmp
The design is handbook decision note 0087 (proposed), which amends 0062.
This is a local prototype: no remote, no image, nothing released. The
first boot hook, its library, the gate and the front files ran by hand on
a real LNMP pair in cloud advanced (BR1 and BR2, evidence
2026-11-12-nextcloud-35-cloud-advanced-pair.md of the handbook).
conf.d/main has not run on a build host.
Makefile, plan/main |
the layer: PHP modules, Redis, bzip2, gpgv |
conf.d/main |
the tarball 35.0.2 (sha256 pin and signature), ownership, Redis include, checks |
keys/nextcloud-security.gpg |
the release key 28806A878AE423A28372792ED75899B9A724937A |
overlay/usr/lib/inithooks/firstboot.d/40nextcloud |
the first boot: pair file, Redis ACL, session pool, install or replica config |
overlay/usr/lib/inithooks/lib/nextcloud.sh |
the logic, as functions with no side effects |
overlay/usr/lib/inithooks/bin/nextcloud.py |
the dialog of keel-init for the administrator password |
overlay/usr/lib/keel-nextcloud/keel-nextcloud-gate |
opens the site only on the writer, empties Redis first, follows an upgrade on a replica |
overlay/usr/lib/keel-nextcloud/keel-nextcloud-cron |
runs cron.php as the web user; a run that the loss of the write role cuts does not fail the unit |
overlay/etc/systemd/system/keel-nextcloud-* |
the gate watcher (each address event), the gate timer (5 s), the cron timer (5 min, only while the gate is open) |
overlay/etc/nginx/keel-default.d/60-keel-nextcloud.conf |
the route in the default site of keel-web |
overlay/etc/nginx/keel-front.d/60-keel-nextcloud.conf |
the sync clients past Anubis, the body limit |
overlay/etc/coreruleset/plugins/keel-nextcloud-before.conf |
WebDAV behind Coraza |
overlay/usr/share/keel/appliances/nextcloud.yaml |
the manifest: replicated paths, the secret and salt of the pair |
overlay/usr/local/bin/keel-occ |
occ as the web user |
bin/keel-nextcloud-image-check |
the image as a first boot starts from |
tests/ |
bats, coverage.sh (kcov), commission.yaml and commission-core.yaml (0075) |
make lint # shellcheck, clean make test # 132 bats tests make coverage # kcov; 95 to 100 percent per file, threshold 90
tests/commission.yaml is the contract of 0075. The image 19.0-1 failed
all its passes on 2026-11-12; 19.0-2 has the fixes. The replica of a cloud
pair answers 503 by design, and the runner runs the urls and the proofs
on every node, so those checks fail on the replica until the runner takes
them per node. The manifest validates with keel 0.23.96 along
core, web, lnmp and nextcloud.
bt-layer nextcloud --parent lnmpon the stable track, underflock /root/bt.lock.conf.d/mainneeds the network to fetch the tarball and its signature.- The template and the ISO, then the passes of 0075 on BR1 and BR2.
- The scheme behind Anubis: the route opts in to
$keel_web_httpswhen keel-web 0.4.4 (Keel-Linux/keel-web#35) is in the archive; a separate pull request carries that line. - Redis is installed from Debian with an include file, not through the
unit-rediscomponent of keel-redis. - The files of the overlay get their modes from the checkout.
tests/tree.batschecks that the conf scripts, the hooks and the programs are executable. - The memory of nginx under Coraza with large DAV bodies: a release blocker candidate of note 0087, section 7; not a defect of this layer.