发布 Pingvin Share 文件分享平台
Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
parent
72aba145cf
commit
6f17833466
|
|
@ -1,32 +1,13 @@
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
formFields:
|
formFields:
|
||||||
- child:
|
- default: "/home/pingvin-share"
|
||||||
default: ""
|
|
||||||
envKey: PANEL_DB_HOST
|
|
||||||
required: true
|
|
||||||
type: service
|
|
||||||
default: mysql
|
|
||||||
edit: true
|
edit: true
|
||||||
envKey: PANEL_DB_TYPE
|
envKey: PINGVIN_SHARE_ROOT_PATH
|
||||||
labelZh: MySQL 服务 (前置检查)
|
|
||||||
labelEn: Database Service (Pre-check)
|
|
||||||
required: true
|
|
||||||
type: apps
|
|
||||||
values:
|
|
||||||
- label: MySQL
|
|
||||||
value: mysql
|
|
||||||
- label: MariaDB
|
|
||||||
value: mariadb
|
|
||||||
- label: Percona
|
|
||||||
value: percona
|
|
||||||
- default: "/home/kimai2"
|
|
||||||
edit: true
|
|
||||||
envKey: KIMAI2_ROOT_PATH
|
|
||||||
labelZh: 数据持久化路径
|
labelZh: 数据持久化路径
|
||||||
labelEn: Data persistence path
|
labelEn: Data persistence path
|
||||||
required: true
|
required: true
|
||||||
type: text
|
type: text
|
||||||
- default: 8001
|
- default: 3000
|
||||||
edit: true
|
edit: true
|
||||||
envKey: PANEL_APP_PORT_HTTP
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
labelZh: 访问端口
|
labelZh: 访问端口
|
||||||
|
|
@ -34,56 +15,15 @@ additionalProperties:
|
||||||
required: true
|
required: true
|
||||||
rule: paramPort
|
rule: paramPort
|
||||||
type: number
|
type: number
|
||||||
- default: ""
|
- default: "false"
|
||||||
edit: true
|
edit: true
|
||||||
envKey: ADMINMAIL
|
envKey: TRUST_PROXY
|
||||||
labelZh: 管理员邮箱
|
labelZh: 是否信任代理
|
||||||
labelEn: Admin Email
|
labelEn: Trust proxy
|
||||||
required: true
|
required: true
|
||||||
type: text
|
type: select
|
||||||
- default: ""
|
values:
|
||||||
edit: true
|
- label: 信任代理
|
||||||
envKey: ADMINPASS
|
value: "true"
|
||||||
labelZh: 管理员密码
|
- label: 不信任代理
|
||||||
labelEn: Admin Password
|
value: "false"
|
||||||
required: true
|
|
||||||
type: password
|
|
||||||
- default: "127.0.0.1"
|
|
||||||
edit: true
|
|
||||||
envKey: DB_HOSTNAME
|
|
||||||
labelZh: 数据库 主机地址
|
|
||||||
labelEn: Database Host
|
|
||||||
required: true
|
|
||||||
type: text
|
|
||||||
- default: 5432
|
|
||||||
edit: true
|
|
||||||
envKey: DB_PORT
|
|
||||||
labelZh: 数据库 端口
|
|
||||||
labelEn: Database Port
|
|
||||||
required: true
|
|
||||||
rule: paramPort
|
|
||||||
type: number
|
|
||||||
- default: "kimai2"
|
|
||||||
edit: true
|
|
||||||
envKey: DB_NAME
|
|
||||||
labelZh: 数据库 名称
|
|
||||||
labelEn: Database Name
|
|
||||||
required: true
|
|
||||||
rule: paramCommon
|
|
||||||
type: text
|
|
||||||
- default: "kimai2"
|
|
||||||
edit: true
|
|
||||||
envKey: DB_USER
|
|
||||||
labelZh: 数据库 用户名
|
|
||||||
labelEn: Database Username
|
|
||||||
required: true
|
|
||||||
type: text
|
|
||||||
- default: ""
|
|
||||||
edit: true
|
|
||||||
envKey: DB_USER_PASSWORD
|
|
||||||
labelZh: 数据库 密码
|
|
||||||
labelEn: Database Password
|
|
||||||
random: true
|
|
||||||
required: true
|
|
||||||
rule: paramComplexity
|
|
||||||
type: password
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,89 @@
|
||||||
|
additionalProperties:
|
||||||
|
formFields:
|
||||||
|
- child:
|
||||||
|
default: ""
|
||||||
|
envKey: PANEL_DB_HOST
|
||||||
|
required: true
|
||||||
|
type: service
|
||||||
|
default: mysql
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_DB_TYPE
|
||||||
|
labelZh: MySQL 服务 (前置检查)
|
||||||
|
labelEn: Database Service (Pre-check)
|
||||||
|
required: true
|
||||||
|
type: apps
|
||||||
|
values:
|
||||||
|
- label: MySQL
|
||||||
|
value: mysql
|
||||||
|
- label: MariaDB
|
||||||
|
value: mariadb
|
||||||
|
- label: Percona
|
||||||
|
value: percona
|
||||||
|
- default: "/home/kimai2"
|
||||||
|
edit: true
|
||||||
|
envKey: KIMAI2_ROOT_PATH
|
||||||
|
labelZh: 数据持久化路径
|
||||||
|
labelEn: Data persistence path
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: 8001
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
|
labelZh: 访问端口
|
||||||
|
labelEn: Port
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: ADMINMAIL
|
||||||
|
labelZh: 管理员邮箱
|
||||||
|
labelEn: Admin Email
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: ADMINPASS
|
||||||
|
labelZh: 管理员密码
|
||||||
|
labelEn: Admin Password
|
||||||
|
required: true
|
||||||
|
type: password
|
||||||
|
- default: "127.0.0.1"
|
||||||
|
edit: true
|
||||||
|
envKey: DB_HOSTNAME
|
||||||
|
labelZh: 数据库 主机地址
|
||||||
|
labelEn: Database Host
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: 5432
|
||||||
|
edit: true
|
||||||
|
envKey: DB_PORT
|
||||||
|
labelZh: 数据库 端口
|
||||||
|
labelEn: Database Port
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: "kimai2"
|
||||||
|
edit: true
|
||||||
|
envKey: DB_NAME
|
||||||
|
labelZh: 数据库 名称
|
||||||
|
labelEn: Database Name
|
||||||
|
required: true
|
||||||
|
rule: paramCommon
|
||||||
|
type: text
|
||||||
|
- default: "kimai2"
|
||||||
|
edit: true
|
||||||
|
envKey: DB_USER
|
||||||
|
labelZh: 数据库 用户名
|
||||||
|
labelEn: Database Username
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: DB_USER_PASSWORD
|
||||||
|
labelZh: 数据库 密码
|
||||||
|
labelEn: Database Password
|
||||||
|
random: true
|
||||||
|
required: true
|
||||||
|
rule: paramComplexity
|
||||||
|
type: password
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
services:
|
||||||
|
pingvin-share:
|
||||||
|
image: stonith404/pingvin-share:v1.2.1
|
||||||
|
container_name: ${CONTAINER_NAME}
|
||||||
|
labels:
|
||||||
|
createdBy: "Apps"
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- 1panel-network
|
||||||
|
ports:
|
||||||
|
- ${PANEL_APP_PORT_HTTP}:3000
|
||||||
|
volumes:
|
||||||
|
- ${PINGVIN_SHARE_ROOT_PATH}/data:/opt/app/backend/data
|
||||||
|
- ${PINGVIN_SHARE_ROOT_PATH}/images:/opt/app/frontend/public/img
|
||||||
|
environment:
|
||||||
|
- BACKEND_PORT=8080
|
||||||
|
- PORT=3000
|
||||||
|
- API_URL=http://localhost:8080
|
||||||
|
- TRUST_PROXY=false
|
||||||
|
|
@ -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,20 @@
|
||||||
|
# Pingvin Share
|
||||||
|
|
||||||
|
Pingvin Share 是一个自托管的文件共享平台,是 WeTransfer 的替代方案。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 特性
|
||||||
|
|
||||||
|
+ 使用链接共享文件
|
||||||
|
+ 无限制的文件大小(仅受限于磁盘空间)
|
||||||
|
+ 为股份设置失效日期
|
||||||
|
+ 安全共享,有限制访客和密码
|
||||||
|
+ 收件人
|
||||||
|
+ 与 ClamAV 的集成以进行安全扫描
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|

|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
additionalProperties:
|
||||||
|
key: pingvin-share
|
||||||
|
name: Pingvin Share
|
||||||
|
tags:
|
||||||
|
- WebSite
|
||||||
|
- Local
|
||||||
|
shortDescZh: 一个集轻盈与美观于一体的自托管文件共享平台
|
||||||
|
shortDescEn: A self-hosted file sharing platform that combines lightness and beauty
|
||||||
|
type: website
|
||||||
|
crossVersionUpdate: true
|
||||||
|
limit: 0
|
||||||
|
website: https://github.com/stonith404/pingvin-share/
|
||||||
|
github: https://github.com/stonith404/pingvin-share/
|
||||||
|
document: https://stonith404.github.io/pingvin-share/introduction/
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 86 KiB |
Loading…
Reference in New Issue