WIP - use traefik to route to application

This commit is contained in:
Francisco Gaona
2026-01-03 23:15:24 +01:00
parent fff1718478
commit 801644f396
3 changed files with 4 additions and 3 deletions

View File

@@ -2,4 +2,4 @@ NUXT_PORT=3001
NUXT_HOST=0.0.0.0 NUXT_HOST=0.0.0.0
# Point Nuxt to the API container (not localhost) # Point Nuxt to the API container (not localhost)
NUXT_PUBLIC_API_BASE_URL=http://jupiter.routebox.co:3000 NUXT_PUBLIC_API_BASE_URL=https://tenant1.routebox.co

View File

@@ -10,7 +10,8 @@ export const useApi = () => {
// In browser, use current hostname but with port 3000 for API // In browser, use current hostname but with port 3000 for API
const currentHost = window.location.hostname const currentHost = window.location.hostname
const protocol = window.location.protocol const protocol = window.location.protocol
return `${protocol}//${currentHost}:3000` //return `${protocol}//${currentHost}:3000`
return `${protocol}//${currentHost}`
} }
// Fallback for SSR // Fallback for SSR
return config.public.apiBaseUrl return config.public.apiBaseUrl

View File

@@ -205,7 +205,7 @@ export function useSoftphone() {
if (typeof window !== 'undefined') { if (typeof window !== 'undefined') {
const currentHost = window.location.hostname; const currentHost = window.location.hostname;
const protocol = window.location.protocol; const protocol = window.location.protocol;
return `${protocol}//${currentHost}:3000`; return `${protocol}//${currentHost}`;
} }
return 'http://localhost:3000'; return 'http://localhost:3000';
}; };