Go back to localhost:3000

This commit is contained in:
Weves 2024-01-08 15:31:02 -08:00 committed by Chris Weaver
parent 7efd3ba42f
commit e473ad0412
4 changed files with 10 additions and 4 deletions

View File

@ -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"
#####

View File

@ -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

View File

@ -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

View File

@ -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.