This commit is contained in:
Jamitz 2026-01-06 15:04:02 +00:00
parent 6378b75bf3
commit d8de720f8c
2 changed files with 7 additions and 2 deletions

View file

@ -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=["*"],

View file

@ -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