更新可以先数据导出json,配置好下面然后再安装导入
1、命令安装docker
docker run -it -d --name halo -p 8090:8090 -v /docker/halo:/root/.halo --restart=unless-stopped halohub/halo:1.6.0
2、nginx 进行反向代理配置
参考https://docs.halo.run/getting-started/install/other/bt-panel
upstream halo {
server 127.0.0.1:8090;
}
server
{
...
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
proxy_pass http://halo;
expires 30d;
error_log /dev/null;
access_log off;
}
location ~ .*\.(js|css)?$
{
proxy_pass http://halo;
expires 12h;
error_log /dev/null;
access_log off;
}
location / {
proxy_pass http://halo;
proxy_set_header HOST $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
...
}