No description
  • Shell 56.4%
  • Jinja 43.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kevin Heyer 85a06f6611
All checks were successful
/ lint (push) Successful in 19s
Add iac-nextcloud: Nextcloud 35 with nginx, PHP 8.4, PostgreSQL and Valkey
First version of the file sharing of the iac office suite (iac-core#65,
#66). Nextcloud comes from the release archive of download.nextcloud.com,
checked against the .sha256 file of the release. The code of each release
lives in /opt/nextcloud/releases, config in /etc/nextcloud (iac.config.php
is managed by iac), user files and store apps in /var/lib/nextcloud.
Background jobs run by the systemd timer nextcloud-cron.timer; update
switches the release and runs occ upgrade (major_lock: one major version
at a time).

Tested: tools/lint.sh; tools/check-app.sh in the dev container – install
and smoke test twice, second run idempotent (changed=1, instance.json).
Not tested: the update from 35.0.2 to 35.0.3, a VM image build and boot
test, login through Authelia (not part of this version).
2026-11-23 18:25:38 +01:00
.forgejo/workflows Add iac-nextcloud: Nextcloud 35 with nginx, PHP 8.4, PostgreSQL and Valkey 2026-11-23 18:25:38 +01:00
.vibe Add iac-nextcloud: Nextcloud 35 with nginx, PHP 8.4, PostgreSQL and Valkey 2026-11-23 18:25:38 +01:00
files Add iac-nextcloud: Nextcloud 35 with nginx, PHP 8.4, PostgreSQL and Valkey 2026-11-23 18:25:38 +01:00
handlers Add iac-nextcloud: Nextcloud 35 with nginx, PHP 8.4, PostgreSQL and Valkey 2026-11-23 18:25:38 +01:00
tasks Add iac-nextcloud: Nextcloud 35 with nginx, PHP 8.4, PostgreSQL and Valkey 2026-11-23 18:25:38 +01:00
templates Add iac-nextcloud: Nextcloud 35 with nginx, PHP 8.4, PostgreSQL and Valkey 2026-11-23 18:25:38 +01:00
tests Add iac-nextcloud: Nextcloud 35 with nginx, PHP 8.4, PostgreSQL and Valkey 2026-11-23 18:25:38 +01:00
.clinerules Add iac-nextcloud: Nextcloud 35 with nginx, PHP 8.4, PostgreSQL and Valkey 2026-11-23 18:25:38 +01:00
.cursorrules Add iac-nextcloud: Nextcloud 35 with nginx, PHP 8.4, PostgreSQL and Valkey 2026-11-23 18:25:38 +01:00
.windsurfrules Add iac-nextcloud: Nextcloud 35 with nginx, PHP 8.4, PostgreSQL and Valkey 2026-11-23 18:25:38 +01:00
AGENTS.md Add iac-nextcloud: Nextcloud 35 with nginx, PHP 8.4, PostgreSQL and Valkey 2026-11-23 18:25:38 +01:00
CHANGELOG.md Add iac-nextcloud: Nextcloud 35 with nginx, PHP 8.4, PostgreSQL and Valkey 2026-11-23 18:25:38 +01:00
CLAUDE.md Add iac-nextcloud: Nextcloud 35 with nginx, PHP 8.4, PostgreSQL and Valkey 2026-11-23 18:25:38 +01:00
GEMINI.md Add iac-nextcloud: Nextcloud 35 with nginx, PHP 8.4, PostgreSQL and Valkey 2026-11-23 18:25:38 +01:00
iac.json Add iac-nextcloud: Nextcloud 35 with nginx, PHP 8.4, PostgreSQL and Valkey 2026-11-23 18:25:38 +01:00
LICENSE Add iac-nextcloud: Nextcloud 35 with nginx, PHP 8.4, PostgreSQL and Valkey 2026-11-23 18:25:38 +01:00
README.md Add iac-nextcloud: Nextcloud 35 with nginx, PHP 8.4, PostgreSQL and Valkey 2026-11-23 18:25:38 +01:00

iac-nextcloud

Nextcloud aus dem Release-Archiv von download.nextcloud.com als LXC oder VM auf Proxmox VE – das Filesharing der Office-Suite von iac (iac-core#65). Teil von iac.

Installation (auf der Proxmox-Node)

bash -c "$(curl -fsSL https://iac.heyer.systems/nextcloud/ct.sh)"   # LXC
bash -c "$(curl -fsSL https://iac.heyer.systems/nextcloud/vm.sh)"   # VM

Ohne Dialog: IAC_NONINTERACTIVE=1 und var_*-Variablen – am einfachsten mit dem Generator auf https://iac.heyer.systems/apps/nextcloud/.

Anmeldung: Benutzer admin, das Passwort steht im Gast: grep nextcloud_admin_password /etc/iac/settings.env.

Was iac einrichtet

  • Nextcloud 35 (Archiv mit Prüfsumme der .sha256-Datei des Releases), nginx und PHP 8.4 (php-fpm) von Debian, PostgreSQL und Valkey als Module (Cache und Dateisperren).
  • Hintergrundaufgaben über den systemd-Timer nextcloud-cron.timer (alle 5 Minuten).
  • Der Code liegt unter /opt/nextcloud/releases/nextcloud-<Version> (nur root darf schreiben, current zeigt auf die aktive Version, die zwei neuesten bleiben liegen), die Konfiguration unter /etc/nextcloud, die Dateien der Benutzer unter /var/lib/nextcloud/data, Apps aus dem App Store unter /var/lib/nextcloud/apps.
  • /etc/nextcloud/iac.config.php gehört iac (Domains, Cache, Proxy). Eigene Einstellungen kommen in /etc/nextcloud/local.config.php: Nextcloud liest alle *.config.php in alphabetischer Reihenfolge, die spätere Datei gewinnt.

Einstellungen

In /etc/iac/settings.env (oder bei der Installation, oder über NetBox):

Name Bedeutung
nextcloud_domain Host-Name, unter dem Benutzer Nextcloud erreichen (z. B. cloud.example.org), wird vertrauenswürdige Domain
nextcloud_url URL mit https://, wenn ein Reverse Proxy davorsteht (Links in Mails, overwrite.cli.url)

Danach update: Die Einstellungen gelten ab dem nächsten Lauf.

Update (im Gast)

update

update holt die neueste Version innerhalb der Hauptversion (major_lock): Nextcloud lässt sich nur von einer Hauptversion zur nächsten aktualisieren, ein Sprung über eine wird nicht gemacht. Der Wechsel auf die nächste Hauptversion ist eine bewusste Handlung (iac.json: upstream.version). Danach führt iac occ upgrade aus und legt fehlende Indizes an. Einen Weg zurück gibt es nur über eine Sicherung: Die Datenbank ist danach neuer als der alte Code.

Sicherung

Modul backup (update --add-modules backup): sichert /etc, /var/lib (Dateien der Benutzer) und PostgreSQL als Dump.

Selbsttest (im Gast)

bash /var/lib/iac/src/core/bin/iac-smoke

Noch nicht enthalten

  • Anmeldung über Authelia (OIDC) und der Konnektor für den Euro-Office Document Server: siehe iac-core#65 und iac-euro-office.
  • adopt bestehender Nextcloud-Installationen.