Commit 744ca3b
committed
fix: use server-side KEYCLOAK_URL for container-to-container JWT verification
In Docker, the frontend container's middleware resolves NEXT_PUBLIC_KEYCLOAK_URL
(http://localhost:8080) to itself instead of the keycloak container, causing
ECONNREFUSED. Prefer the runtime KEYCLOAK_URL env var (http://keycloak:8080)
on the server side for proper Docker DNS resolution.1 parent 4f07775 commit 744ca3b
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
43 | 48 | | |
44 | 49 | | |
45 | 50 | | |
| |||
0 commit comments