Merge pull request #56 from uja-dev-practices/fix/auth-and-api-config

Fix/auth and api config
This commit is contained in:
Mireya Cueto Garrido
2026-05-14 11:26:28 +02:00
committed by GitHub
4 changed files with 11 additions and 4 deletions
+1
View File
@@ -8,6 +8,7 @@ __pycache__/
# de producción y el esqueleto de variables. Nunca subimos .env.local.
.env.local
.env.*.local
.env
# Override de Docker Compose para desarrollo local (no debe llegar a producción)
docker-compose.override.yml
+2 -2
View File
@@ -13,12 +13,12 @@
</div>
<div align="center">
<strong>Proyecto completo con backend en FastAPI + MongoDB, frontend en React + Vite, contenedores Docker, autenticación por email y Google OAuth 2.0, y sistema de cálculo DoC-MF / DoC-IT2MF.</strong>
<strong>Proyectoa completo con backend en FastAPI + MongoDB, frontend en React + Vite, contenedores Docker, autenticación por email y Google OAuth 2.0, y sistema de cálculo DoC-MF / DoC-IT2MF.</strong>
</div>
Incluye:
- Backend en **FastAPI + MongoDB**
- Backend en **FastAPI + MongoDBa**
- Frontend en **Vite + React**
- Contenedores Docker para todo el proyecto
- Sistema de historial por usuario
+1 -1
View File
@@ -22,7 +22,7 @@ services:
- ./frontend:/app
- /app/node_modules
environment:
- VITE_API_URL=http://localhost:8070/api
- VITE_API_URL=/api
depends_on:
- backend
+7 -1
View File
@@ -10,6 +10,12 @@ export default defineConfig({
],
server: {
host: '0.0.0.0',
allowedHosts: true
allowedHosts: true,
proxy: {
'/api': {
target: process.env.BACKEND_URL || 'http://backend:8000',
changeOrigin: true
}
}
}
})