Skip to content

Commit 58de486

Browse files
committed
fix adding correct ports
1 parent 07fa8e1 commit 58de486

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

openwebui/src/lib/constants.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { browser, dev } from '$app/environment';
33

44
export const APP_NAME = 'ActionBridge';
55

6-
// Backend IP for dev environment
7-
const DEV_BACKEND_IP = 'ec2-34-224-7-3.compute-1.amazonaws.com'; // Tu IP de instancia aquí
6+
// Backend domain for dev environment
7+
const DEV_BACKEND_DOMAIN = 'dev-langbuilder-app.cloudgeometry.com'; // Con SSL automático
88

9-
export const WEBUI_HOSTNAME = browser ? (dev ? `${DEV_BACKEND_IP}:8767` : location.host) : '';
10-
export const WEBUI_BASE_URL = browser ? (dev ? `http://${WEBUI_HOSTNAME}` : `${location.protocol}//${location.host}`) : ``;
9+
export const WEBUI_HOSTNAME = browser ? (dev ? DEV_BACKEND_DOMAIN : location.host) : '';
10+
export const WEBUI_BASE_URL = browser ? (dev ? `https://${WEBUI_HOSTNAME}` : `${location.protocol}//${location.host}`) : ``;
1111
export const WEBUI_API_BASE_URL = `${WEBUI_BASE_URL}/api/v1`;
1212

1313
export const OLLAMA_API_BASE_URL = `${WEBUI_BASE_URL}/ollama`;

0 commit comments

Comments
 (0)