fossasia/visdom

Serve over HTTPS

クローズ

#148 opened on 2017/09/05

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

Repository metrics

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

説明

Is there any way to tell Visdom to make requests over HTTPS as opposed to HTTP?

When setting up a reverse proxy with HTTPS, pointing to localhost:8097, I get these messages (Chrome).

Mixed Content: The page at 'https://my.web.address/' was loaded over HTTPS, but requested an insecure script 'http://my.web.address/static/js/main.js?v=4b72317f763632006def9236be6408b4'. This content should also be served over HTTPS.

Which is fine for development purposes, however I also receive this error message that I'm not sure how to resolve.

WebSocket connection to 'ws://my.web.address/socket' failed: Error during WebSocket handshake: Unexpected response code: 301

And this (Edge)

SCRIPT5022: SecurityError
main.js (1,13767)

For completeness, here's the Caddy configuration on how I'm reverse proxying Visdom.

my.web.address {
    proxy / localhost:8097 {
        transparent
        websocket
    }

    log stdout
    errors stderr
}

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