Front: same-origin — nginx/vite proxy /api i /health do API (apiUrl pusty, wspolna siec fitos-net)

This commit is contained in:
Tilumca
2026-10-14 04:46:58 +02:00
parent 18f1432eac
commit 671bb3f655
15 changed files with 153 additions and 46 deletions

View File

@@ -1,2 +1,4 @@
# Build-time fallback (runtime config.js takes precedence)
VITE_API_URL=http://tisachi.ddns.net:9002
# Domyślnie nic nie ustawiaj: API jest proxywane w tym samym originsie co SPA
# (nginx w kontenerze / vite dev proxy), a runtime config (public/config.js) ma pusty apiUrl.
# VITE_API_URL tylko dla awaryjnego wskazania zewnętrznego adresu API (build-time fallback).
# VITE_API_URL=http://localhost:9002