No description
  • Shell 59.7%
  • Jinja 40.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iac-renovate b2c615b00c
All checks were successful
/ image (push) Successful in 48m49s
/ lint (push) Successful in 34s
/ publish (push) Successful in 9s
Merge pull request 'Update traefik/traefik to v3.7.19' (#6) from renovate/traefik-traefik-3.x into main
2026-11-16 19:10:35 +01:00
.forgejo/workflows Pin the tested version 3.7.14 for Renovate 2026-10-18 20:52:49 +02:00
.vibe Add the agent pointer for Mistral Vibe 2026-10-15 12:23:51 +02:00
docs Keep ACME storage and environment when adopting Traefik 2026-10-23 19:18:28 +02:00
files Sandbox Traefik, add security headers 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 Keep ACME storage and environment when adopting Traefik 2026-10-23 19:18:28 +02:00
templates Keep ACME storage and environment when adopting Traefik 2026-10-23 19:18:28 +02:00
tests Keep ACME storage and environment when adopting Traefik 2026-10-23 19:18:28 +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 Name pve.sh as the only host management in AGENTS.md 2026-10-27 15:01:38 +01:00
CHANGELOG.md Keep ACME storage and environment when adopting Traefik 2026-10-23 19:18:28 +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:10 +02:00
GEMINI.md Add instructions for AI agents 2026-10-11 17:41:55 +02:00
iac.json Update traefik/traefik to v3.7.19 2026-11-16 17:10:34 +00:00
LICENSE Add MIT license 2026-11-14 17:17:07 +01:00
README.md Drop files that iac-core now provides 2026-10-12 08:21:30 +02:00

iac-traefik

Traefik als LXC oder VM auf Proxmox VE (Debian 13) – oder einfach per Docker Compose. Teil von iac – Konzept: iac-core/docs/CONCEPT.md.

Installation (auf der Proxmox-Node)

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

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/traefik/. 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/traefik && cd /opt/traefik
curl -fsSL https://iac.heyer.systems/traefik/docker-compose.yml -o docker-compose.yml
docker compose up -d

Host-Ports per .env ändern (z. B. PORT_80=8081), Update: docker compose pull && docker compose up -d. Details stehen oben in docker-compose.yml.

Update (im Gast)

update

Das aktualisiert Debian-Pakete, Traefik (innerhalb der Major-Version) und die iac-Konfiguration.

Selbsttest (dasselbe wie im Boot-Test des Images): bash /var/lib/iac/src/core/bin/iac-smoke

Bestehende Installation übernehmen

bash -c "$(curl -fsSL https://iac.heyer.systems/traefik/adopt.sh)"

Wenn das nicht automatisch geht: docs/MIGRATION.md.

Standard-Einrichtung

Binary /usr/local/bin/traefik (GitHub-Release, Prüfsumme geprüft)
Dienst traefik.service als User traefik
Statische Konfiguration /etc/traefik/traefik.yaml (iac) – eigene: /etc/traefik/traefik.local.yaml
Dynamische Konfiguration /etc/traefik/conf.d/*.yaml
Daten (z. B. acme.json) /var/lib/traefik/
Entrypoints web :80, websecure :443, dashboard :8080
Dashboard http://<ip>:8080/dashboard/ – Firewall: nur aus privaten Netzen
Firewall nftables: SSH, 80, 443 offen; 8080 privat; Rest gesperrt

Dateien mit # managed by iac werden bei update überschrieben – eigene Anpassungen gehören in die genannten local-Dateien bzw. eigene Dateien in conf.d/ und nftables.d/90-local.nft.