docker run -itd \
--name siyuan \
-v /data/siyuan:/root/Documents/SiYuan \
-p 6806:6806 \
-u 1000:1000 \
b3log/siyuan \
--workspace=/root/Documents/SiYuan \
--servePath=note.huajitom.cn \
--ssl=true
除了反代http还要反代websocket。 http反代过程略 以下为配置代码:
location /ws {
proxy_pass http://127.0.0.1:6806;
proxy_read_timeout 60s;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'Upgrade';
}
若想要更简便地升级,可参考docker-compose安装方法