发布应用 Shiori 应用
Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
parent
e5808d5268
commit
8f70bff28e
|
|
@ -0,0 +1,44 @@
|
|||
additionalProperties:
|
||||
formFields:
|
||||
- child:
|
||||
default: ""
|
||||
envKey: PANEL_DB_HOST
|
||||
required: true
|
||||
type: service
|
||||
default: postgresql
|
||||
envKey: PANEL_DB_TYPE
|
||||
labelZh: 数据库服务 (前置检查)
|
||||
labelEn: Database Service
|
||||
required: true
|
||||
type: apps
|
||||
values:
|
||||
- label: PostgreSQL
|
||||
value: postgresql
|
||||
- label: MySQL
|
||||
value: mysql
|
||||
- label: MariaDB
|
||||
value: mariadb
|
||||
- label: Percona
|
||||
value: percona
|
||||
- default: "/home/shiori"
|
||||
edit: true
|
||||
envKey: SHIORI_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 8080
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: 访问端口
|
||||
labelEn: Port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: SHIORI_DATABASE_URL
|
||||
labelZh: 数据库链接 URL
|
||||
labelEn: Database URL
|
||||
required: true
|
||||
type: text
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
shiori:
|
||||
image: ghcr.io/go-shiori/shiori:v1.7.1
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8080
|
||||
env_file:
|
||||
- /etc/1panel/envs/global.env
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
volumes:
|
||||
- ${SHIORI_ROOT_PATH}/dev-data:/srv/shiori
|
||||
- ${SHIORI_ROOT_PATH}/data:/src/shiori
|
||||
environment:
|
||||
- SHIORI_DIR=/srv/shiori
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
# Shiori
|
||||
|
||||
Shiori 是一款用 Go 语言编写的简单书签管理器,旨在作为 Pocket 的简单克隆。
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## 特性
|
||||
|
||||
+ 基础书签管理,即添加、编辑、删除和搜索。
|
||||
+ 从 Netscape 书签文件导入和导出书签。
|
||||
+ 从 Pocket 导入书签。
|
||||
+ 简洁明了的命令行界面。
|
||||
+ 简洁美观的网页界面,专为那些不想使用命令行应用程序的用户设计。
|
||||
+ 轻便便携,得益于其单一的二进制格式。
|
||||
+ 数据库支持 sqlite3、PostgreSQL 和 MySQL。
|
||||
+ 默认情况下,尽可能的, shiori 将解析可读内容并创建网页的离线存档。
|
||||
+ [测试版] 支持 Firefox 和 Chrome 浏览器的 Web 扩展程序。
|
||||
|
||||
## 安装说明
|
||||
|
||||
### `数据库链接 URL` 配置
|
||||
|
||||
> 名词解释
|
||||
>
|
||||
> `username` 数据库用户名
|
||||
>
|
||||
> `password` 数据库密码
|
||||
>
|
||||
> `localhost` 数据库地址
|
||||
>
|
||||
> `port` 数据库端口
|
||||
>
|
||||
> `database` 数据库名称
|
||||
|
||||
+ `mysql` 数据库链接 URL 配置
|
||||
|
||||
模板:`mysql://username:password@tcp(localhost:port)/database?charset=utf8mb4`
|
||||
示例:`mysql://shiori:shiori@(mariadb)/shiori?charset=utf8mb4`
|
||||
|
||||
+ `postgresql` 数据库链接 URL 配置
|
||||
|
||||
模板:`postgres://username:password@localhost:port/database?sslmode=disable`
|
||||
示例:`postgres://shiori:shiori@postgres/shiori?sslmode=disable`
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
|
@ -0,0 +1,14 @@
|
|||
additionalProperties:
|
||||
key: shiori
|
||||
name: Shiori
|
||||
tags:
|
||||
- WebSite
|
||||
- Local
|
||||
shortDescZh: 简单书签管理器,旨在作为 Pocket 的简单克隆
|
||||
shortDescEn: Simple bookmark manager, aiming to be a simple clone of Pocket
|
||||
type: website
|
||||
crossVersionUpdate: true
|
||||
limit: 0
|
||||
website: https://www.kimai.org/
|
||||
github: https://github.com/kimai/kimai/
|
||||
document: https://www.kimai.org/documentation/
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
Loading…
Reference in New Issue