数据库采用mariadb,在群辉安装

  docker run -d \
  --name=mariadb \
  -e PUID=1026 \
  -e PGID=100 \
  -e MYSQL_ROOT_PASSWORD=root_password \
  -e TZ=Asia/Shanghai \
  -e MYSQL_DATABASE=typecho \
  -e MYSQL_USER=tt \
  -e MYSQL_PASSWORD=paasword\
  -p 3306:3306 \
  -v /volume1/docker/mariadb:/config \
  --restart unless-stopped \
  linuxserver/mariadb:amd64-alpine


关于反代,在conf.d/nginx.conf中最后一段内容改成

    location / {
        resolver 114.114.114.114 valid=60s; #解决ddns的ip变化问题
        set $backend "http://dsm.thomashu.win:30080";
        proxy_pass $backend;
        # proxy_pass http://dsm.thomashu.win:30080;
        proxy_set_header X-Real-IP  $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto https;
        proxy_set_header X-Forwarded-Port 443;
        proxy_set_header Host $host;
}

https登录后台,修改根目录config.inc.php,加入

    /** 启用https **/
    define('__TYPECHO_SECURE__', true);

首页随机图片

https://api.ixiaowai.cn/gqapi/gqapi.php