wandb / server

W&B Server is the self hosted version of Weights & Biases
MIT License
263 stars 21 forks source link

How to replace PUBLIC_URL or __PUBLIC_URL_PLACEHOLDER__ in web html? #136

Closed youamanb closed 7 months ago

youamanb commented 8 months ago

how to generate web path in index.html? like , mypath is self defined

nate-wandb commented 8 months ago

Hi @youamanb, I'm not sure I fully understand the question. Could you let me know what your goal is by doing this?

youamanb commented 8 months ago

Hi @nate-wandb , I run the wandb-local docker image with version wandb/local:0.50.2, and in the docker container,I found the index.html file under the folder /var/app/frontend, the "/var/app/frontend/index.html" is generated from "/var/app/orig_frontend/index.html",and PUBLIC_URL_PLACEHOLDER is in /var/app/orig_frontend/index.html.So I want to replace PUBLIC_URL_PLACEHOLDER with my own defined URL prefix such as “wandb-api”,so I hope the generated file "/var/app/frontend/index.html" has content src path like this " ",can we do this?

anmolmann commented 7 months ago

Hi @youamanb , you shouldn't need to manually edit these files on your end. Passing the host variable, the FQD of your instance, i.e. https://my.domain.net/ should work. Please set the host and then launch your docker container, you'll see we'll populate the placeholder automatically after parsing it from the host var value. If this doesn't happen in your case, please let us know and we'll investigate this further. Example cmd:

\docker run --rm -d \
   -e HOST=https://YOUR_DNS_NAME \
   -e LICENSE=XXXXX \
youamanb commented 7 months ago

  您好,我已收到您的邮件,谢谢!

anmolmann commented 7 months ago

Hi @youamanb , I wanted to follow up on this request. Please let us know if we can be of further assistance or if your issue has been resolved.

anmolmann commented 7 months ago

Hi @youamanb , since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!