code-server 环境
备忘:code-server使用git graph无法显示问题和markdown无法预览问题,都是由于http:ip直连导致
通过nginx-proxy-manager加了ssl,又出现WebSocket close with status code 1006问题
解决方案:
location / {
proxy_pass http://172.17.0.01:60068/;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Accept-Encoding gzip;
proxy_set_header Origin https://$host;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}
链接: 参考