Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How can I replace the localhost address #15747

Closed
czxin788 opened this issue Apr 18, 2024 · 2 comments
Closed

Question: How can I replace the localhost address #15747

czxin788 opened this issue Apr 18, 2024 · 2 comments

Comments

@czxin788
Copy link

Question

image

I visit the web http://192.168.100.128:14000, but jump to http://localhost:14001.
How can I solve the problem?

@czxin788 czxin788 added Needs Triage This issue needs to be correctly labelled and triaged Type: Question labels Apr 18, 2024
@GuptaManan100 GuptaManan100 added Component: web UI and removed Needs Triage This issue needs to be correctly labelled and triaged labels Apr 25, 2024
@notfelineit notfelineit self-assigned this Apr 25, 2024
@notfelineit
Copy link
Contributor

notfelineit commented Apr 25, 2024

Hi @czxin788! Could you help me answer you question by telling me:

  • how you booted up vtadmin-web and vtadmin-api?
  • what version of Vitess you're using

Normally, you can set this environment variable VITE_VTADMIN_API_ADDRESS on vtadmin-web, which is equal to the address of your vtadmin-api process: https://github.com/vitessio/vitess/blob/main/web/vtadmin/vite-env.d.ts#L12-L14

For example, you might add:

VITE_VTADMIN_API_ADDRESS=http://192.168.100.128:14001 npm run start

if starting the server up locally.

@czxin788
Copy link
Author

Thanks, it is ok by set VITE_VTADMIN_API_ADDRESS=http://192.168.100.128:14001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants