- Shell 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
/ lint (push) Successful in 10s
The smoke test requires a listener on every documented port. Some of this app's ports have none in the default state; "optional": true skips only the listener check, the firewall is still checked. Tested: tools/check-app.sh (lint, two dev container runs with the smoke test, idempotency). |
||
| .forgejo/workflows | ||
| .vibe | ||
| docs | ||
| files | ||
| handlers | ||
| tasks | ||
| tests | ||
| .clinerules | ||
| .cursorrules | ||
| .windsurfrules | ||
| AGENTS.md | ||
| CHANGELOG.md | ||
| CLAUDE.md | ||
| docker-compose.yml | ||
| GEMINI.md | ||
| iac.json | ||
| LICENSE | ||
| README.md | ||
iac-nginx
nginx aus Debian 13 als LXC oder VM auf Proxmox VE – mit
iac-nginx-sites, das statische Seiten selbstständig aus der Paket-Registry abholt.
Teil von iac.
Installation (auf der Proxmox-Node)
bash -c "$(curl -fsSL https://iac.heyer.systems/nginx/ct.sh)" # LXC
bash -c "$(curl -fsSL https://iac.heyer.systems/nginx/vm.sh)" # VM
Ohne Dialog: IAC_NONINTERACTIVE=1 und var_*-Variablen (siehe iac-core/lib/host.func) – am einfachsten
mit dem Generator auf https://iac.heyer.systems/apps/nginx/. Die Skripte geben alles auf Englisch aus.
Module (optional)
| Modul | Inhalt |
|---|---|
node-exporter |
Prometheus node exporter, Port 9100 nur aus privaten Netzen |
unattended-upgrades |
Debian-Sicherheitsupdates täglich automatisch |
Beim Anlegen: var_modules=node-exporter,unattended-upgrades (oder im Dialog „advanced“).
Später im Gast ändern: update --modules node-exporter (--modules '' = keine).
Docker
mkdir -p /opt/nginx && cd /opt/nginx
curl -fsSL https://iac.heyer.systems/nginx/docker-compose.yml -o docker-compose.yml
docker compose up -d
Liefert die Dateien aus ./html aus (ohne iac-nginx-sites). Host-Port per .env ändern
(PORT_80=8081), Update: docker compose pull && docker compose up -d.
Statische Seiten
iac-nginx-sites add iac https://git.heyer.systems/api/packages/iac/generic/iac-website iac.heyer.systems default
iac-nginx-sites list
iac-nginx-sites rollback iac
Ein Timer gleicht alle 5 Minuten ab: neue Version → Prüfsumme → nginx -t → atomar umschalten.
Bei Fehlern bleibt die alte Version aktiv. Das Paket muss site.tar.gz (mit public/, optional
nginx/*.conf für zusätzliche Regeln) und SHA256SUMS enthalten – so wie
iac-core/tools/publish-package.sh es ablegt.
Update (im Gast)
update
Selbsttest (dasselbe wie im Boot-Test des Images): bash /var/lib/iac/src/core/bin/iac-smoke
Standard-Einrichtung
| nginx | Debian-Paket, Konfiguration nach Debian-Standard |
| iac-Vorgaben | /etc/nginx/conf.d/00-iac.conf (server_tokens, echte Client-IP hinter Proxy, gzip) |
| Eigene vhosts | /etc/nginx/sites-enabled/ – gehören dir |
| Seitenquellen | /etc/iac/nginx/sites.d/<name>.conf – gehören dir |
| Seiten-Daten | /var/lib/iac-nginx/sites/<name>/ (letzte 3 Versionen) |
| Firewall | nftables: SSH, 80, 443 |