kavita自建在线读书book reader

date
Jan 26, 2022
slug
newservice-kavita-book-library
status
Published
summary
新服务 自建 在线ebook reader
tags
service
type
Post
notion image
notion image

Summary

步骤

#1 准备好目录

export KAVITA_DIR='/data/kavita'
export KAVITA_LIB='/data/kavita/library'
export KAVITA_CONFIG='/data/kavita/config'
mkdir -p $KAVITA_DIR; cd $KAVITA_DIR
mkdir -p config
mkdir /drive/gd_stanford/_host/$(hostname)/kavita/library
ln -s /drive/gd_stanford/_host/$(hostname)/kavita/library library
cd library && mkdir books comics pics sss_comics sss_books && cd ..

#2 docker


cd $KAVITA_DIR
docker run -d \
    --name kavita \
    -v $(pwd)/library:/library \
    -v $(pwd)/config:/kavita/config \
    --restart unless-stopped \
    -e TZ=Asia/Shanghai \
    -p 10077:5000 \
    -d kizaing/kavita:latest

宝塔反代设置

# The following configurations must be configured when proxying to Kavita
    proxy_pass http://127.0.0.1:10077;
    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;
反代
notion image

上传书到google drive (自建电子书阅读Kavita@bwh5g5t-books google drive) 然后就可以手动更新(自动是每天更新)

验证

notion image
notion image
notion image
notion image
 

© Ying Bun 2021 - 2024