Update runtime ports and deployment defaults.

Switch backend/frontend to ports 8074/8075 and align Docker, CORS, frontend API base URL, and docs so deployment uses the new endpoints consistently.
This commit is contained in:
Mireya Cueto Garrido
2026-06-02 10:09:27 +02:00
parent 108afae3ca
commit 91999e7691
11 changed files with 24 additions and 24 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ API_KEY=change-me-in-production-min-16-chars
DATABASE_URL=postgresql+psycopg://genexamenes:genexamenes@db:5432/genexamenes
# --- CORS (orígenes del frontend, separados por coma) ---
ALLOWED_ORIGINS=http://localhost:5173,http://localhost:3000
ALLOWED_ORIGINS=http://localhost:8075
# --- Rate limiting y tamaño de petición ---
RATE_LIMIT_REQUESTS=60
+2 -2
View File
@@ -23,6 +23,6 @@ RUN mkdir -p /app/uploads && chown -R app:app /app/uploads
USER app
EXPOSE 8000
EXPOSE 8074
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8074"]
+1 -1
View File
@@ -10,7 +10,7 @@ class Settings(BaseSettings):
api_prefix: str = ""
api_key: str = Field(min_length=16)
database_url: str = "postgresql+psycopg://genexamenes:genexamenes@localhost:5432/genexamenes"
allowed_origins: str = "http://localhost:5173,http://localhost:3000"
allowed_origins: str = "http://localhost:8075"
rate_limit_requests: int = Field(default=60, ge=1)
rate_limit_window_seconds: int = Field(default=60, ge=1)
max_request_bytes: int = Field(default=1_048_576, ge=1_024)