fossasia/visdom

Visdom does not display when accessed via a proxy (with a path in its URL)

オープン

#666 opened on 2019/09/06

 (5 件のコメント) (0 件のリアクション) (1 人の担当者)Python (1,152 件のフォーク)batch import
enhancementhelp wanted

Repository metrics

Stars
 (9,831 個のスター)
PR merge metrics
 (平均マージ 9d 12h) (30d で 116 merged PRs)

説明

Bug Description I want to access visdom only via a proxy.

Visdom runs at the address 'http://visdomHost:8097' The proxy runs at the address 'http://proxyHost:8080/path1'. It receives requests at this address and redirects them to visdom.

The issue is that visdom cannot find static files because it does not consider/support the proxy path ('/path1'). In the browser console, I see that visdom is looking for the files 'http://proxyHost:8080/static/css/xxx', whereas the correct address is 'http://proxyHost:8080/path1/static/css/xxx'

How can I configure visdom to consider the path in the proxy URL.

Note that the proxy works fine when the path is simply '/'.

Thanks in advance.

Reproduction Steps

  1. Run visdom
  2. Configure a proxy (with a PATH in its URL) to redirect requests to visdom. For instance, you can configure nginx to redirect the path '/path1' to visdom.
  3. See the errors that appear in the browser console

コントリビューターガイド