From 792a107fe9385a008bcc96a569ae8d76e32c6a53 Mon Sep 17 00:00:00 2001 From: rene Date: Sun, 15 Mar 2026 09:36:48 +0100 Subject: [PATCH] setup-base: git.motocamp.de auf NPM-IP (10.47.11.23) statt Synology direkt Gitea laeuft hinter dem Nginx Proxy Manager (macvlan). Direkter Zugriff auf die Synology-IP liefert DSM statt Gitea. --- CLAUDE.md | 2 +- setup-base.sh | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index c78fb76..a0a1694 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -70,7 +70,7 @@ die Setup-Skripte nicht heruntergeladen werden. - WLAN-Config beim netplan-zu-NM Umstieg erhalten - systemd-networkd-wait-online deaktivieren - cloud-init deaktivieren nach Installation -- /etc/hosts: dsm.motocamp.de + git.motocamp.de → 10.47.11.10 (Synology intern nicht per DNS erreichbar) +- /etc/hosts: dsm.motocamp.de → 10.47.11.10 (Synology direkt), git.motocamp.de → 10.47.11.23 (NPM/macvlan, da Gitea hinter Reverse Proxy) ### WireGuard VPN - Konfiguration via NetworkManager .nmconnection (nicht wg-quick) diff --git a/setup-base.sh b/setup-base.sh index 0df6980..7440626 100755 --- a/setup-base.sh +++ b/setup-base.sh @@ -299,9 +299,11 @@ systemctl enable NetworkManager-wait-online.service 2>/dev/null || true ok "NetworkManager als Netzwerk-Renderer" # /etc/hosts: Synology-Dienste im LAN (intern nicht per DNS erreichbar) -for host in dsm.motocamp.de git.motocamp.de; do +# dsm -> Synology direkt, git -> Nginx Proxy Manager (macvlan) +for entry in "10.47.11.10 dsm.motocamp.de" "10.47.11.23 git.motocamp.de"; do + host="${entry##* }" if ! grep -q "$host" /etc/hosts; then - echo "10.47.11.10 $host" >> /etc/hosts + echo "$entry" >> /etc/hosts ok "/etc/hosts: $host" else ok "/etc/hosts: $host (bereits vorhanden)"