fix: HTTP-only Caddy for Gate B LAN phone hang
Root cause: Caddy on :80 returned 308 → HTTPS, and TLS handshake failed (Go/OpenSSL compat). Phones hung on HTTPS redirect loop. Fix: Caddyfile serves all HTTP on :80 without TLS/redirect. Docker compose drops port 443 and cert mount. Interim — post-POC restores proper TLS.
This commit is contained in:
+8
-10
@@ -1,18 +1,16 @@
|
|||||||
slab.local {
|
# Interim HTTP-only Caddy config for Gate B UAT.
|
||||||
tls /data/certs/slab.crt /data/certs/slab.key
|
# Serves frontend + API over plain HTTP on all hostnames/IPs.
|
||||||
|
# No TLS, no HTTPS redirect. Phone CA trust is not required.
|
||||||
|
#
|
||||||
|
# Post-POC: restore slab.local with proper TLS and ACME.
|
||||||
|
|
||||||
|
:80 {
|
||||||
handle /api/* {
|
handle /api/* {
|
||||||
reverse_proxy fastapi:8000 {
|
reverse_proxy fastapi:8000
|
||||||
transport http {
|
|
||||||
tls_insecure_skip_verify
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
handle {
|
handle {
|
||||||
reverse_proxy frontend:80 {
|
reverse_proxy frontend:80 {
|
||||||
header_up X-Real-IP {remote_host}
|
header_up X-Real-IP {remote_host}
|
||||||
transport http {
|
|
||||||
tls_insecure_skip_verify
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,10 +41,8 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "0.0.0.0:80:80"
|
- "0.0.0.0:80:80"
|
||||||
- "0.0.0.0:443:443"
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./Caddyfile:/etc/caddy/Caddyfile
|
- ./Caddyfile:/etc/caddy/Caddyfile
|
||||||
- ./certs:/data/certs:ro
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- frontend
|
- frontend
|
||||||
- fastapi
|
- fastapi
|
||||||
|
|||||||
Reference in New Issue
Block a user