Skip to content

Commit 02ea1ec

Browse files
committed
fix: helm deployment
1 parent ab2df1e commit 02ea1ec

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

deploy/helm/spending-monitor/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ secrets:
2424
BYPASS_AUTH: "false"
2525
CORS_ALLOWED_ORIGINS: '["*"]'
2626
ALLOWED_ORIGINS: '["*"]'
27+
ALLOWED_HOSTS: '["*"]'
2728
SMTP_HOST: "changeme"
2829
SMTP_PORT: "587"
2930
SMTP_FROM_EMAIL: "changeme"

env.example

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ DEBUG=false
2323
# =============================================================================
2424
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:8080
2525
ALLOWED_ORIGINS=http://localhost:3000,http://localhost:8080
26-
ALLOWED_HOSTS=["http://localhost:3000"]
26+
ALLOWED_HOSTS='["http://localhost:3000"]'
2727

2828
# =============================================================================
2929
# LLM Configuration (Required for AI features)
@@ -90,4 +90,7 @@ SMTP_USE_SSL=false
9090
# UI Configuration
9191
# =============================================================================
9292
VITE_API_BASE_URL=/api
93+
VITE_BYPASS_AUTH=true
94+
VITE_ENVIRONMENT=development
95+
LLAMASTACK_BASE_URL=http://llamastack:8321
9396

packages/ui/src/hooks/useWebSocket.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ export function useWebSocket({
9393
// Use relative URL that works with Vite proxy
9494
// In development, this will be proxied to the API server
9595
// In production, this will be served from the same domain
96-
const wsUrl = `ws://${window.location.host}/ws/recommendations/${userId}`;
96+
// Use wss:// for HTTPS pages, ws:// for HTTP pages
97+
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
98+
const wsUrl = `${protocol}//${window.location.host}/ws/recommendations/${userId}`;
9799
ws.current = new WebSocket(wsUrl);
98100

99101
ws.current.onopen = () => {

0 commit comments

Comments
 (0)