Server — Grundlagen
Kapitel 9 · Praxis

Praxis — Setup-Beispiele

  1. 1) Erste eigene Cloud-VM. Hetzner Cloud CX22 mieten (4 GB RAM, ~5 €/Monat).
    Setup: Ubuntu 24.04 wählen → SSH-Key bei Erstellung hinzufügen → einloggen mit ssh root@IP.
  2. 2) Webseite mit Docker.
    # docker-compose.yml
    services:
      web:
        image: nginx:latest
        ports: ["80:80"]
        volumes: ["./html:/usr/share/nginx/html"]
    Befehl: docker compose up -d.
  3. 3) SSL mit Let's Encrypt. Caddy automatisiert es:
    # Caddyfile
    example.com {
        reverse_proxy localhost:3000
    }
    Caddy holt das Zertifikat automatisch.
  4. 4) Backup-Strategie. 3-2-1-Regel: 3 Kopien, 2 verschiedene Medien, 1 offsite.
    Praxis: Hetzner Storage Box + Borg/Restic + verschlüsseltes Backup zu Wasabi (S3-kompatibel).
  5. 5) Firewall einrichten. ufw (Ubuntu) — nur 22, 80, 443 offen:
    sudo ufw allow ssh
    sudo ufw allow http
    sudo ufw allow https
    sudo ufw enable
  6. 6) Monitoring. Was sehen ohne lange selbst basteln?
    Lösung: Uptime Kuma (Self-Hosted, Docker) oder Better Stack / Sentry für Cloud.
  7. 7) Auto-Updates. Linux-Sicherheitsupdates automatisch:
    sudo apt install unattended-upgrades
    sudo dpkg-reconfigure unattended-upgrades
    Sicherheitsupdates fließen automatisch ein.
Zurück zu Technik & IT