From d8de720f8c4f57bd655983d86dd85e275931a5ad Mon Sep 17 00:00:00 2001 From: Jamitz Date: Tue, 6 Jan 2026 15:04:02 +0000 Subject: [PATCH] update --- backend/app/main.py | 5 ++++- compose.yaml | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/backend/app/main.py b/backend/app/main.py index 9471f10..ef8b515 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -9,7 +9,10 @@ app = FastAPI(title="Notes API") # CORS - adjust origins for production app.add_middleware( CORSMiddleware, - allow_origins=["http://localhost:5173"], # Vite dev server + allow_origins=[ + "http://localhost:5173", + "https://notes.fitzythe.dev", + ], # Vite dev server allow_credentials=True, allow_methods=["*"], allow_headers=["*"], diff --git a/compose.yaml b/compose.yaml index d582374..eb929b3 100644 --- a/compose.yaml +++ b/compose.yaml @@ -3,12 +3,14 @@ services: build: context: ./backend container_name: fastnotes-api + # NO ports section at all - Coolify handles this ui: build: context: ./frontend args: - VITE_API_URL: https://notesapi.fitzythe.dev # Pass as build arg + VITE_API_URL: https://notesapi.fitzythe.dev container_name: fastnotes-ui + # NO ports section at all depends_on: - api