Skip to content

[新服务] docker自建Wallabag进行离线网页收藏保存服务

目的

  • like pocket – 但是take a snapshot – 离线本地保存
  • 原url失效了仍然可以用

参考

实现

mkdir -p /data/wallabag && cd /data/wallabag 
mkdir data images #or symlink elsewhere

srv_port=11380
docker run --name wallabag --restart=always -d \
  -p ${srv_port}:80 \
  -e SYMFONY__ENV__DOMAIN_NAME=https://bag.nonoidea.com \
  -v $(pwd)/data:/var/www/wallabag/data \
  -v $(pwd)/images:/var/www/wallabag/web/assets/images \
  wallabag/wallabag

docker logs -f wallabag

CF+反代

location /
{
    proxy_pass http://127.0.0.1:11380;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header REMOTE-HOST $remote_addr;
    proxy_set_header        X-Forwarded-Proto $scheme;
}

测试

可以下载安卓手机 + Chrome 插件

已经开启二次验证的话就会出错

Leave a Reply

Your email address will not be published.