feat(deploy): 正式環境部署設定
- frontend/api.js: API URL 自動判斷 (localhost=dev, 其他=相對路徑 /api/v1) - main.py: 加入 StaticFiles 掛載 admin-portal,CORS 開放 - schedule_tenant: Traefik 路由範本更新 - 管理租戶加入 /api 路由 (priority 200) - /admin 加入 StripPrefix middleware - admin 服務改指向 vmis-backend:10281 - docker/vmis: 新增 Dockerfile + docker-compose.yml Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
/* VMIS Admin Portal - API utilities */
|
||||
|
||||
const API = 'http://localhost:10281/api/v1';
|
||||
const API = (location.hostname === 'localhost' || location.hostname === '127.0.0.1')
|
||||
? 'http://localhost:10281/api/v1'
|
||||
: '/api/v1';
|
||||
|
||||
/* ── Auth state ── */
|
||||
let _sysSettings = null;
|
||||
|
||||
Reference in New Issue
Block a user