Docker: interner nginx statt socat (Host-Header -> localhost)

Ursache des 404 bei Zugriff über IP/Proxy: .NET-HttpListener bedient den Prefix
http://localhost:8077/ nur bei Host: localhost. socat (L4) reicht den originalen
Host-Header durch -> 404. Jetzt sitzt ein winziger nginx im Container davor, der
den Host-Header auf localhost umschreibt (Upstream [::1]:8077, IPv4 als Fallback).
App-Code bleibt unverändert.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-09-21 14:35:24 +02:00
co-authored by Claude Opus 4.8
parent c217f5f8f3
commit f40be6e4bd
5 changed files with 55 additions and 25 deletions
+2 -1
View File
@@ -10,7 +10,7 @@ services:
ports:
- "8080:8080" # <docker-host>:8080 -> vom Reverse-Proxy anziehen
volumes:
- im-data:/data # settings.json + policy-exports persistent
- /volume2/docker/intuneManager/data:/data # settings.json + policy-exports persistent
environment:
- XDG_CONFIG_HOME=/data
- APP_PORT=8077
@@ -19,3 +19,4 @@ services:
volumes:
im-data:
ls