Merge pull request #56 from uja-dev-practices/fix/auth-and-api-config
Fix/auth and api config
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user