Files
plantillas-proyectos/frontend/.env.example
Galindo97 557f904af0 fix(auth): cambiar client_id de Keycloak de anexo76-frontend a hub-frontend
Anexo76 no es independiente del Hub/Workspace — comparten el mismo
cliente de Keycloak (hub-frontend). anexo76-frontend no existe en KC.

- Dockerfile.prod: agrega ARG/ENV VITE_KEYCLOAK_CLIENT_ID=hub-frontend
- workspace-auth.ts: actualiza fallback de 'anexo76-frontend' a 'hub-frontend'
- .env.example: actualiza a hub-frontend
- Jenkinsfile: pasa --build-arg VITE_KEYCLOAK_CLIENT_ID=hub-frontend al build

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20 15:49:28 -05:00

23 lines
736 B
Plaintext

# ─── Copia este archivo a .env y ajusta los valores para dev local ─────────────
# API de Anexo76 (frontend y SSR)
VITE_API_URL=http://localhost:8000/api/
INTERNAL_API_URL=http://localhost:8000/api/
# Hub Workspace
VITE_HUB_URL=http://localhost:3001
HUB_URL=http://localhost:3001
INTERNAL_HUB_URL=http://localhost:8001
# Keycloak
VITE_KEYCLOAK_URL=http://localhost:8085/kcauth
VITE_KEYCLOAK_REALM=master
VITE_KEYCLOAK_CLIENT_ID=hub-frontend
KEYCLOAK_URL=http://localhost:8085/kcauth
KEYCLOAK_REALM=master
KEYCLOAK_CLIENT_ID=hub-frontend
# KEYCLOAK_CLIENT_SECRET= # solo si el cliente KC no es público
# SvelteKit — necesario para cookies secure y URLs SSR correctas
ORIGIN=http://localhost:5173