- Shell 56.4%
- Jinja 43.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
/ lint (push) Successful in 19s
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). |
||
| .forgejo/workflows | ||
| .vibe | ||
| files | ||
| handlers | ||
| tasks | ||
| templates | ||
| tests | ||
| .clinerules | ||
| .cursorrules | ||
| .windsurfrules | ||
| AGENTS.md | ||
| CHANGELOG.md | ||
| CLAUDE.md | ||
| GEMINI.md | ||
| iac.json | ||
| LICENSE | ||
| README.md | ||
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,currentzeigt 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.phpgehört iac (Domains, Cache, Proxy). Eigene Einstellungen kommen in/etc/nextcloud/local.config.php: Nextcloud liest alle*.config.phpin 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#65undiac-euro-office. adoptbestehender Nextcloud-Installationen.