From e473ad0412ebbcc23fd439f1d57e3ef1db760363 Mon Sep 17 00:00:00 2001 From: Weves Date: Mon, 8 Jan 2024 15:31:02 -0800 Subject: [PATCH] Go back to localhost:3000 --- backend/danswer/configs/app_configs.py | 5 ++++- deployment/docker_compose/env.prod.template | 2 +- deployment/kubernetes/env-configmap.yaml | 2 +- web/README.md | 5 ++++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/backend/danswer/configs/app_configs.py b/backend/danswer/configs/app_configs.py index 7ed6ac955..7c6ce31a7 100644 --- a/backend/danswer/configs/app_configs.py +++ b/backend/danswer/configs/app_configs.py @@ -27,7 +27,10 @@ DISABLE_GENERATIVE_AI = os.environ.get("DISABLE_GENERATIVE_AI", "").lower() == " # Web Configs ##### # WEB_DOMAIN is used to set the redirect_uri after login flows -WEB_DOMAIN = os.environ.get("WEB_DOMAIN") or "http://127.0.0.1:3000" +# NOTE: if you are having problems accessing the Danswer web UI locally (especially +# on Windows, try setting this to `http://127.0.0.1:3000` instead and see if that +# fixes it) +WEB_DOMAIN = os.environ.get("WEB_DOMAIN") or "http://localhost:3000" ##### diff --git a/deployment/docker_compose/env.prod.template b/deployment/docker_compose/env.prod.template index 25ae40afd..190630f6c 100644 --- a/deployment/docker_compose/env.prod.template +++ b/deployment/docker_compose/env.prod.template @@ -4,7 +4,7 @@ # Could be something like danswer.companyname.com -WEB_DOMAIN=http://127.0.0.1:3000 +WEB_DOMAIN=http://localhost:3000 # Generative AI settings, uncomment as needed, will work with defaults diff --git a/deployment/kubernetes/env-configmap.yaml b/deployment/kubernetes/env-configmap.yaml index 1ab8ebe16..a296fed30 100644 --- a/deployment/kubernetes/env-configmap.yaml +++ b/deployment/kubernetes/env-configmap.yaml @@ -69,5 +69,5 @@ data: LOG_VESPA_TIMING_INFORMATION: "" # Shared or Non-backend Related INTERNAL_URL: "http://api-server-service:80" # for web server - WEB_DOMAIN: "http://127.0.0.1:3000" # for web server and api server + WEB_DOMAIN: "http://localhost:3000" # for web server and api server DOMAIN: "localhost" # for nginx diff --git a/web/README.md b/web/README.md index af76266d1..63437481f 100644 --- a/web/README.md +++ b/web/README.md @@ -17,4 +17,7 @@ yarn dev pnpm dev ``` -Open [http://127.0.0.1:3000](http://127.0.0.1:3000) with your browser to see the result. +Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. + +*Note:* if you are having problems accessing the ^, try setting the `WEB_DOMAIN` env variable to +`http://127.0.0.1:3000` and accessing it there.