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:
@@ -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
|
||||
Reference in New Issue
Block a user