No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kevin Heyer c4b3969b2d
All checks were successful
/ lint (push) Successful in 10s
Mark ports without a listener by default as optional
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).
2026-11-20 09:26:43 +01:00
.forgejo/workflows Build the VM image nightly instead of on every push 2026-11-17 12:56:56 +01:00
.vibe Add the agent pointer for Mistral Vibe 2026-10-15 12:23:51 +02:00
docs Drop files that iac-core now provides 2026-10-12 08:21:30 +02:00
files Add security headers, restrict the site sync 2026-10-13 15:28:46 +02:00
handlers Move to iac-core v2: the app is an Ansible role 2026-10-11 15:43:44 +02:00
tasks Move to iac-core v2: the app is an Ansible role 2026-10-11 15:43:44 +02:00
tests Move to iac-core v2: the app is an Ansible role 2026-10-11 15:43:44 +02:00
.clinerules Add instructions for AI agents 2026-10-11 17:41:55 +02:00
.cursorrules Add instructions for AI agents 2026-10-11 17:41:55 +02:00
.windsurfrules Add instructions for AI agents 2026-10-11 17:41:55 +02:00
AGENTS.md Build the VM image nightly instead of on every push 2026-11-17 12:56:56 +01:00
CHANGELOG.md Add security headers, restrict the site sync 2026-10-13 15:28:46 +02:00
CLAUDE.md Add instructions for AI agents 2026-10-11 17:41:55 +02:00
docker-compose.yml Skripte auf Englisch, Docker Compose, optionale Module 2026-10-08 17:09:11 +02:00
GEMINI.md Add instructions for AI agents 2026-10-11 17:41:55 +02:00
iac.json Mark ports without a listener by default as optional 2026-11-20 09:26:43 +01:00
LICENSE Add MIT license [skip ci] 2026-11-17 07:08:26 +01:00
README.md Drop files that iac-core now provides 2026-10-12 08:21:30 +02:00

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