chore: enhance environment configuration for frontend and Google authentication
- Add VITE_API_URL to docker-compose for frontend service. - Introduce FRONTEND_URL in backend environment files for redirection after Google login. - Update Google authentication router to use dynamic FRONTEND_URL for redirects.
This commit is contained in:
@@ -19,3 +19,9 @@ GOOGLE_REDIRECT_URI=http://localhost:8070/api/auth/google/callback
|
||||
|
||||
# Clave para firmar los JWT (usa algo largo y aleatorio en producción)
|
||||
SECRET_KEY=cambia-esta-clave-en-produccion
|
||||
|
||||
# URL del frontend a la que se redirige tras el login con Google
|
||||
# Con docker-compose en local: http://localhost:8071
|
||||
# Con Vite directo en local: http://localhost:5173
|
||||
# En producción: https://tu-dominio.com
|
||||
FRONTEND_URL=http://localhost:5173
|
||||
|
||||
Reference in New Issue
Block a user