calibre-web 初始账号信息:
账号:admin
密码:admin123

Calibre-Web 项目介绍

使用 1Panel 安装 Calibre-Web

安装 1Panel

安装方法参考官网:1Panel

Responsive Image

应用商店一键安装 Calibre-Web

访问 ip:端口,端口为应用服务端口:

Responsive Image

image-20241211161558986

如果不能访问先查看端口是否放行

在容器/books 下添加空白 metadata.db 文件

当容器的/books 文件夹中没有 metadata.db 文件时,添加 database 会显示如下报错:

Responsive Image

image-20241211155333752

为了解决这个问题,在容器的/books 文件夹中加入空白的metadata.db文件:

  1. 准备一个空白的metadata.db文件,可以是通过其他 calibre 客户端生成,或者下载我这个已经生成好的:点击下载
  2. 确认容器/books 文件夹映射的本地文件夹地址:

点击应用商店 - 已安装 - clibre-web - 参数

Responsive Image

image-20241211155953729

点击编辑 - 高级 - 编辑 compose 文件,确认 volumes 下的文件映射:

Responsive Image

image-20241211160104437

一般来说,在不修改 compose 文件一键安装时,volumes 一般是这样的:

volumes:
    - ./data/config:/config
    - ./data/books:/books

./data/config即为 calibre-web 应用路径下的 data/config,calibre-web 应用路径一般来说为/opt/1panel/apps/calibre-web/<容器名称>

点击容器查看容器名称,或者输入安装时输入的名称Responsive Image

image-20241211160744797

我的容器名为 calibre-web,所以我容器内/books 映射的本机目录为:/opt/1panel/apps/calibre-web/calibre-web/data/books

将准备好的metadata.db文件上传到这个目录

Responsive Image

image-20241211160953402

修改/books 文件夹权限

有时添加 database 会显示报错:“Database 不可写入”,这个时候大概率是文件夹权限问题

Responsive Image

image-20241211161121555

将用户和用户组改成 1000,或者直接把权限改成 0777

增加 calibre-web 的易用性

添加域名反代并配置 SSL 证书

使用 1panel 很容易,如果不会可以留言……

增加 database

Responsive Image

image-20241211161945428

修改管理员账号信息、密码、语言

Responsive Image

image-20241211163253195

编辑页面设置

Responsive Image

image-20241211163909330