Merge pull request 'fix/login-redirect-URL' (#439) from fix/login-redirect-URL into development
Reviewed-on: ADUANASOFT/anexo76#439
This commit is contained in:
@@ -240,6 +240,10 @@ services:
|
||||
- INTERNAL_API_URL=${INTERNAL_API_URL:-http://backend:8000/api/}
|
||||
- INTERNAL_HUB_URL=https://workspace.aduanasoft.com
|
||||
- HUB_URL=https://workspace.aduanasoft.com
|
||||
# VITE_HUB_URL: URL pública del Hub para el browser (bakeada en build, pero también se lee
|
||||
# en runtime por $env/dynamic/private en workspace-auth.ts). El root .env puede tener
|
||||
# localhost; isDevOnlyUrl() lo descarta y cae a HUB_URL (correcto arriba).
|
||||
- VITE_HUB_URL=https://workspace.aduanasoft.com
|
||||
- VITE_KEYCLOAK_URL=${VITE_KEYCLOAK_URL:-https://anexo76-dev.aduanasoft.com/kcauth/}
|
||||
- VITE_KEYCLOAK_REALM=${VITE_KEYCLOAK_REALM:-master}
|
||||
- VITE_KEYCLOAK_CLIENT_ID=${VITE_KEYCLOAK_CLIENT_ID:-anexo76-frontend}
|
||||
@@ -247,8 +251,14 @@ services:
|
||||
- KEYCLOAK_REALM=${KEYCLOAK_REALM:-master}
|
||||
- KEYCLOAK_CLIENT_ID=${KEYCLOAK_CLIENT_ID:-anexo76-backend}
|
||||
- KEYCLOAK_CLIENT_SECRET=${KEYCLOAK_CLIENT_SECRET:-dev-secret}
|
||||
# SvelteKit ORIGIN — evita que request.url.origin use la IP/puerto interno del contenedor
|
||||
# SvelteKit ORIGIN — determina url.origin en load functions y el flag secure de cookies.
|
||||
# ⚠️ Docker Compose carga el .env raíz automáticamente. Si ese .env tiene
|
||||
# ORIGIN=http://localhost:5173 (valor dev), sobreescribe el default de abajo.
|
||||
# SITE_URL es el fallback que usa el código cuando url.origin es localhost.
|
||||
- ORIGIN=${ORIGIN:-https://anexo76-dev.aduanasoft.com}
|
||||
# SITE_URL: hardcoded — no depende del .env raíz.
|
||||
# resolveSystemBaseUrl() lo usa cuando ORIGIN tiene localhost (root .env de dev en prod).
|
||||
- SITE_URL=https://anexo76-dev.aduanasoft.com
|
||||
ports:
|
||||
- "5111:5173"
|
||||
depends_on:
|
||||
|
||||
Reference in New Issue
Block a user