update
This commit is contained in:
parent
6378b75bf3
commit
d8de720f8c
2 changed files with 7 additions and 2 deletions
|
|
@ -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=["*"],
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue