feat: Add HTTPS/Traefik support with centralized endpoints

- Create traefik/agent-ui.yml with full routing config for domain z590.nucleoriofrio.com
- Add frontend/src/config/endpoints.ts for automatic HTTP/HTTPS detection
- Update all hardcoded localhost URLs to use relative paths
- WebSocket connections auto-detect wss:// vs ws:// based on page protocol
- Configure path-based WebSocket routing (/ws/terminal, /ws/mcp, /ws/status, /ws/whisper)
- Add commented IP whitelist middleware for future security
This commit is contained in:
2026-02-14 03:20:51 -06:00
parent 47f5524416
commit 902029c805
18 changed files with 471 additions and 26 deletions

View File

@@ -2,7 +2,8 @@ import { defineStore } from 'pinia'
import { ref, computed } from 'vue'
import type { ProjectCanvas, CanvasComponent, ComponentUsage } from '../types/canvas'
const API_URL = 'http://localhost:4101'
// Uses relative URLs - works with Vite proxy in dev and Traefik in production
const API_URL = ''
export const useProjectCanvasStore = defineStore('projectCanvas', () => {
// State

View File

@@ -44,7 +44,8 @@ export interface DesignTokens {
examples: Record<string, string>
}
const API_URL = 'http://localhost:4101'
// Uses relative URLs - works with Vite proxy in dev and Traefik in production
const API_URL = ''
// =====================
// Store