File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
deploy/helm/spending-monitor Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ DEBUG=false
2323# =============================================================================
2424CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:8080
2525ALLOWED_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# =============================================================================
9292VITE_API_BASE_URL=/api
93+ VITE_BYPASS_AUTH=true
94+ VITE_ENVIRONMENT=development
95+ LLAMASTACK_BASE_URL=http://llamastack:8321
9396
Original file line number Diff line number Diff 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 = ( ) => {
You can’t perform that action at this time.
0 commit comments