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
|
# CORS - adjust origins for production
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware,
|
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_credentials=True,
|
||||||
allow_methods=["*"],
|
allow_methods=["*"],
|
||||||
allow_headers=["*"],
|
allow_headers=["*"],
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,14 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ./backend
|
context: ./backend
|
||||||
container_name: fastnotes-api
|
container_name: fastnotes-api
|
||||||
|
# NO ports section at all - Coolify handles this
|
||||||
|
|
||||||
ui:
|
ui:
|
||||||
build:
|
build:
|
||||||
context: ./frontend
|
context: ./frontend
|
||||||
args:
|
args:
|
||||||
VITE_API_URL: https://notesapi.fitzythe.dev # Pass as build arg
|
VITE_API_URL: https://notesapi.fitzythe.dev
|
||||||
container_name: fastnotes-ui
|
container_name: fastnotes-ui
|
||||||
|
# NO ports section at all
|
||||||
depends_on:
|
depends_on:
|
||||||
- api
|
- api
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue