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

@@ -82,7 +82,7 @@ async function connect() {
try {
// Test connection and get repo info
const res = await fetch('http://localhost:4101/api/gitea/repo', {
const res = await fetch('/api/gitea/repo', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
@@ -119,7 +119,7 @@ async function connect() {
async function loadFileTree(path: string = '') {
try {
const res = await fetch('http://localhost:4101/api/gitea/tree', {
const res = await fetch('/api/gitea/tree', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
@@ -184,7 +184,7 @@ async function selectFile(node: FileNode) {
fileContent.value = ''
try {
const res = await fetch('http://localhost:4101/api/gitea/file', {
const res = await fetch('/api/gitea/file', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({