feat:调整lanraragi

This commit is contained in:
okxlin 2024-09-01 16:01:42 +08:00
parent 6306e75286
commit bd781c910f
9 changed files with 179 additions and 92 deletions

View File

@ -0,0 +1,9 @@
CONTAINER_NAME="lanraragi"
CONTENT_DIRECTORY="./data/content"
DATABASE_DIRECTORY="./data/database"
HTTPS_PROXY=""
HTTP_PROXY=""
PANEL_APP_PORT_HTTP=40290
PLUGIN_DIRECTORY="./data/plugin"
THUMBNAIL_DIRECTORY="./data/thumb"
TIME_ZONE="Asia/Shanghai"

View File

@ -0,0 +1,59 @@
additionalProperties:
formFields:
- default: "40290"
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: "./data/content"
edit: true
envKey: CONTENT_DIRECTORY
labelEn: Content Directory
labelZh: 媒体库目录
required: true
type: text
- default: "./data/thumb"
edit: true
envKey: THUMBNAIL_DIRECTORY
labelEn: Thumbnail Directory
labelZh: 缩略图目录
required: true
type: text
- default: "./data/database"
edit: true
envKey: DATABASE_DIRECTORY
labelEn: Database Directory
labelZh: 数据库目录
required: true
type: text
- default: "./data/plugin"
edit: true
envKey: PLUGIN_DIRECTORY
labelEn: Plugin Directory
labelZh: 插件目录
required: true
type: text
- default: ""
edit: true
envKey: HTTP_PROXY
labelEn: HTTP Proxy
labelZh: HTTP 代理
required: false
type: text
- default: ""
edit: true
envKey: HTTPS_PROXY
labelEn: HTTPS Proxy
labelZh: HTTPS 代理
required: false
type: text
- default: "Asia/Shanghai"
edit: true
envKey: TIME_ZONE
labelEn: Time Zone
labelZh: 时区
required: true
type: text

View File

@ -0,0 +1,24 @@
services:
lanraragi:
image: "difegue/lanraragi:v.0.9.21"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:3000"
volumes:
- ${CONTENT_DIRECTORY}:/home/koyomi/lanraragi/content
- ${THUMBNAIL_DIRECTORY}:/home/koyomi/lanraragi/content/thumb
- ${DATABASE_DIRECTORY}:/home/koyomi/lanraragi/database
- ${PLUGIN_DIRECTORY}:/home/koyomi/lanraragi/lib/LANraragi/Plugin
environment:
- http_proxy=${HTTP_PROXY}
- https_proxy=${HTTPS_PROXY}
- TZ=${TIME_ZONE}
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

View File

@ -1,66 +1,12 @@
LANraragi
===========
# LANraragi
开源漫画/漫画存档服务器基于Mojolicious + Redis运行。
基于gpt进行的二次汉化版
## 使用说明
E-Hentai Tags Converter脚本插件的数据库须自行下载https://github.com/EhTagTranslation/Database/releases
默认密码`kamimamita`
默认使用存储卷可根据需要自行更换为本机目录存储卷须手动提升权限777
content: 内容
thumbnails: 缩略图
database: 数据库
plugina: 插件
Sideloaded: 手动上传的插件
#### 💬 与其他LANraragi用户在[Discord](https://discord.gg/aRQxtbg)或[GitHub Discussions](https://github.com/Difegue/LANraragi/discussions)交流
#### [📄 文档](https://sugoi.gitbook.io/lanraragi/v/dev) | [⏬ 下载](https://github.com/Difegue/LANraragi/releases/latest) | [🎞 演示](https://lrr.tvc-16.science) | [🪟🌃 Windows Nightlies](https://nightly.link/Difegue/LANraragi/workflows/push-continous-delivery/dev) | [💵 赞助开发](https://ko-fi.com/T6T2UP5N)
## 截图
|主页,缩略图视图 | 主页,列表视图 |
|---|---|
| [![archive_thumb](https://raw.githubusercontent.com/Difegue/LANraragi/dev/tools/_screenshots/archive_thumb.png)](https://raw.githubusercontent.com/Difegue/LANraragi/dev/tools/_screenshots/archive_thumb.png) | [![archive_list](https://raw.githubusercontent.com/Difegue/LANraragi/dev/tools/_screenshots/archive_list.png)](https://raw.githubusercontent.com/Difegue/LANraragi/dev/tools/_screenshots/archive_list.png) |
|档案阅读器 | 带叠加层的阅读器 |
|---|---|
| [![reader](https://raw.githubusercontent.com/Difegue/LANraragi/dev/tools/_screenshots/reader.jpg)](https://raw.githubusercontent.com/Difegue/LANraragi/dev/tools/_screenshots/reader.jpg) | [![reader_overlay](https://raw.githubusercontent.com/Difegue/LANraragi/dev/tools/_screenshots/reader_overlay.jpg)](https://raw.githubusercontent.com/Difegue/LANraragi/dev/tools/_screenshots/reader_overlay.jpg) |
|配置 | 插件配置 |
|---|---|
| [![cfg](https://raw.githubusercontent.com/Difegue/LANraragi/dev/tools/_screenshots/cfg_plugin.png)](https://raw.githubusercontent.com/Difegue/LANraragi/dev/tools/_screenshots/cfg.png) | [![cfg_plugin](https://raw.githubusercontent.com/Difegue/LANraragi/dev/tools/_screenshots/cfg_plugin.png)](https://raw.githubusercontent.com/Difegue/LANraragi/dev/tools/_screenshots/cfg_plugin.png) |
## 特点
* 将漫画存储为压缩档案格式。支持zip/rar/targz/lzma/7z/xz/cbz/cbr/pdf基本支持epub
* 直接从Web浏览器读取档案服务器使用临时文件夹从压缩文件中读取。
* 使用内置的OPDS目录现已支持PSE在专用阅读器软件中阅读你的档案
* 使用客户端API与LANraragi进行交互适用于[多种平台!](https://sugoi.gitbook.io/lanraragi/v/dev/advanced-usage/external-readers)
* 两种不同的用户界面:带悬停缩略图的紧凑档案列表或缩略图视图。
* 从5种预装的响应式库样式中选择或使用CSS添加自己的样式。
* 完整的标签支持和命名空间:添加自己的标签或使用插件从其他来源导入。
* 将档案存储在任意或动态分类中,轻松排序你的库。
* 在档案添加到LANraragi时使用插件自动导入元数据。
* 直接从互联网下载档案到服务器,同时使用上述的自动元数据导入。
* 将数据库备份为JSON格式将标签转移到另一个LANraragi实例。
## 提交PR获取贴纸™
合并到此repo的PR或捐赠$5以上有资格获得[免费贴纸包](https://forms.office.com/Pages/ResponsePage.aspx?id=DQSIkWdsW0yxEjajBLZtrQAAAAAAAAAAAAN__osxt25URTdTUTVBVFRCTjlYWFJLMlEzRTJPUEhEVy4u)。
- 可以自行更换汉化后的镜像:
- 高级设置 > 编辑 compose 文件 > 对应修改`image: "difegue/lanraragi:latest"`
- 修改为:`image: "mhdy2233/lanraragi_cn_mhdy:latest"`
- 及其他镜像`image: "windycloud/lanraragi_cn:latest"`等

View File

@ -1,18 +1,19 @@
name: LANraragi
tags:
- 多媒体
title: Lanraragi是一个开源的压缩包漫画阅读器运行在Mojolicious和Redis基础上。
type: 多媒体
description:
title: 一个开源的漫画存档服务
description: 一个开源的漫画存档服务
additionalProperties:
key: lanraragi
name: LANraragi
shortDescZh: Lanraragi是一个开源的压缩包漫画阅读器运行在Mojolicious和Redis基础上。
shortDescEn: Open source server for archival of comics/manga, running on Mojolicious + Redis.
type: 多媒体
tags:
- Media
shortDescZh: 一个开源的漫画存档服务
shortDescEn: Open source server for archival of comics/manga
type: tool
crossVersionUpdate: true
limit: 0
recommend: 0
website: https://lrr.tvc-16.science/
github: https://github.com/Difegue/LANraragi?tab=readme-ov-file
website: https://lrr.tvc-16.science
github: https://github.com/Difegue/LANraragi
document: https://sugoi.gitbook.io/lanraragi/v/dev

View File

@ -1,3 +1,9 @@
CONTAINER_NAME="lanraragi"
PANEL_APP_PORT_HTTP="3000"
CONTENT_DIRECTORY="./data/content"
DATABASE_DIRECTORY="./data/database"
HTTPS_PROXY=""
HTTP_PROXY=""
PANEL_APP_PORT_HTTP=40290
PLUGIN_DIRECTORY="./data/plugin"
THUMBNAIL_DIRECTORY="./data/thumb"
TIME_ZONE="Asia/Shanghai"

View File

@ -1,10 +1,59 @@
additionalProperties:
formFields:
- default: 3000
- default: "40290"
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: WebUI Port
labelZh: 网页端口
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
type: number
- default: "./data/content"
edit: true
envKey: CONTENT_DIRECTORY
labelEn: Content Directory
labelZh: 媒体库目录
required: true
type: text
- default: "./data/thumb"
edit: true
envKey: THUMBNAIL_DIRECTORY
labelEn: Thumbnail Directory
labelZh: 缩略图目录
required: true
type: text
- default: "./data/database"
edit: true
envKey: DATABASE_DIRECTORY
labelEn: Database Directory
labelZh: 数据库目录
required: true
type: text
- default: "./data/plugin"
edit: true
envKey: PLUGIN_DIRECTORY
labelEn: Plugin Directory
labelZh: 插件目录
required: true
type: text
- default: ""
edit: true
envKey: HTTP_PROXY
labelEn: HTTP Proxy
labelZh: HTTP 代理
required: false
type: text
- default: ""
edit: true
envKey: HTTPS_PROXY
labelEn: HTTPS Proxy
labelZh: HTTPS 代理
required: false
type: text
- default: "Asia/Shanghai"
edit: true
envKey: TIME_ZONE
labelEn: Time Zone
labelZh: 时区
required: true
type: text

View File

@ -1,31 +1,24 @@
services:
lanraragi:
user: root
container_name: lanraragi
image: "difegue/lanraragi:latest"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
environment:
- "TZ=Asia/Shanghai"
ports:
- "3000:3000"
- "${PANEL_APP_PORT_HTTP}:3000"
volumes:
- content:/home/koyomi/lanraragi/content
- thumbnails:/home/koyomi/lanraragi/content/thumb
- database:/home/koyomi/lanraragi/database
- plugin:/home/koyomi/lanraragi/lib/LANraragi/Plugin
- Sideloaded:/home/koyomi/lanraragi/lib/LANraragi/Plugin/Sideloaded
image: mhdy2233/lanraragi_cn_mhdy:0.2
- ${CONTENT_DIRECTORY}:/home/koyomi/lanraragi/content
- ${THUMBNAIL_DIRECTORY}:/home/koyomi/lanraragi/content/thumb
- ${DATABASE_DIRECTORY}:/home/koyomi/lanraragi/database
- ${PLUGIN_DIRECTORY}:/home/koyomi/lanraragi/lib/LANraragi/Plugin
environment:
- http_proxy=${HTTP_PROXY}
- https_proxy=${HTTPS_PROXY}
- TZ=${TIME_ZONE}
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true
volumes:
content:
thumbnails:
database:
plugin:
Sideloaded:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 113 KiB

After

Width:  |  Height:  |  Size: 12 KiB