mirror of
https://github.com/QYG2297248353/appstore-dpanel
synced 2025-12-29 08:01:36 +08:00
Synced apps from source repository via GitHub Actions
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
# 数据持久化路径 [必填]
|
||||
SLINK_ROOT_PATH=/home/slink
|
||||
|
||||
# 访问端口 [必填]
|
||||
PANEL_APP_PORT_HTTP=3000
|
||||
|
||||
# 主机域名 [必填]
|
||||
ORIGIN=http://127.0.0.1:3000
|
||||
|
||||
# 用户上传图片是否需要批准 [必填]
|
||||
USER_APPROVAL_REQUIRED=true
|
||||
|
||||
# 允许未认证用户访问公共路由 [必填]
|
||||
USER_ALLOW_UNAUTHENTICATED_ACCESS=true
|
||||
|
||||
# 是否移除图片的 EXIF 元数据 [必填]
|
||||
IMAGE_STRIP_EXIF_METADATA=true
|
||||
|
||||
# 图片上传最大限制 (最大 50M) [必填]
|
||||
IMAGE_MAX_SIZE=15M
|
||||
|
||||
# 用户密码最小长度 [必填]
|
||||
USER_PASSWORD_MIN_LENGTH=8
|
||||
|
||||
# 用户密码要求 [必填]
|
||||
USER_PASSWORD_REQUIREMENTS=15
|
||||
|
||||
# 存储策略 [必填]
|
||||
STORAGE_PROVIDER=local
|
||||
|
||||
# SMB 服务器地址
|
||||
SMB_HOST=
|
||||
|
||||
# SMB 用户名
|
||||
SMB_USERNAME=
|
||||
|
||||
# SMB 密码
|
||||
SMB_PASSWORD=
|
||||
|
||||
# SMB 共享路径
|
||||
SMB_SHARE=
|
||||
|
||||
@@ -0,0 +1,148 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "/home/slink"
|
||||
edit: true
|
||||
envKey: SLINK_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 3000
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: 访问端口
|
||||
labelEn: Port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "http://127.0.0.1:3000"
|
||||
edit: true
|
||||
envKey: ORIGIN
|
||||
labelZh: 主机域名
|
||||
labelEn: Host domain
|
||||
required: true
|
||||
type: text
|
||||
- default: "true"
|
||||
edit: true
|
||||
envKey: USER_APPROVAL_REQUIRED
|
||||
labelZh: 用户上传图片是否需要批准
|
||||
labelEn: Do users need approval to upload images
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 启用用户批准策略
|
||||
value: "true"
|
||||
- label: 禁用用户批准策略
|
||||
value: "false"
|
||||
- default: "true"
|
||||
edit: true
|
||||
envKey: USER_ALLOW_UNAUTHENTICATED_ACCESS
|
||||
labelZh: 允许未认证用户访问公共路由
|
||||
labelEn: Allow unauthenticated users to access public routes
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 允许访问
|
||||
value: "true"
|
||||
- label: 禁止访问
|
||||
value: "false"
|
||||
- default: "true"
|
||||
edit: true
|
||||
envKey: IMAGE_STRIP_EXIF_METADATA
|
||||
labelZh: 是否移除图片的 EXIF 元数据
|
||||
labelEn: Remove EXIF metadata from images
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 移除
|
||||
value: "true"
|
||||
- label: 保留
|
||||
value: "false"
|
||||
- default: "15M"
|
||||
edit: true
|
||||
envKey: IMAGE_MAX_SIZE
|
||||
labelZh: 图片上传最大限制 (最大 50M)
|
||||
labelEn: Maximum image upload limit (max 50M)
|
||||
required: true
|
||||
type: text
|
||||
- default: 8
|
||||
edit: true
|
||||
envKey: USER_PASSWORD_MIN_LENGTH
|
||||
labelZh: 用户密码最小长度
|
||||
labelEn: Minimum user password length
|
||||
required: true
|
||||
type: number
|
||||
- default: "15"
|
||||
edit: true
|
||||
envKey: USER_PASSWORD_REQUIREMENTS
|
||||
labelZh: 用户密码要求
|
||||
labelEn: User password requirements
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 数字 + 大小写字母 + 特殊字符
|
||||
value: "15"
|
||||
- label: 数字 + 大小写字母
|
||||
value: "7"
|
||||
- label: 数字 + 特殊字符
|
||||
value: "9"
|
||||
- label: 大小写字母 + 特殊字符
|
||||
value: "14"
|
||||
- label: 大写字母 + 数字
|
||||
value: "5"
|
||||
- label: 小写字母 + 数字
|
||||
value: "3"
|
||||
- label: 大写字母 + 特殊字符
|
||||
value: "12"
|
||||
- label: 小写字母 + 特殊字符
|
||||
value: "10"
|
||||
- label: 纯数字
|
||||
value: "1"
|
||||
- label: 大小写字母
|
||||
value: "6"
|
||||
- label: 纯大写字母
|
||||
value: "4"
|
||||
- label: 纯小写字母
|
||||
value: "2"
|
||||
- label: 纯特殊字符
|
||||
value: "8"
|
||||
- default: "local"
|
||||
edit: true
|
||||
envKey: STORAGE_PROVIDER
|
||||
labelZh: 存储策略
|
||||
labelEn: Storage strategy
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 本地存储
|
||||
value: "local"
|
||||
- label: SMB 存储
|
||||
value: "smb"
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: SMB_HOST
|
||||
labelZh: SMB 服务器地址
|
||||
labelEn: SMB server address
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: SMB_USERNAME
|
||||
labelZh: SMB 用户名
|
||||
labelEn: SMB username
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: SMB_PASSWORD
|
||||
labelZh: SMB 密码
|
||||
labelEn: SMB password
|
||||
required: false
|
||||
type: password
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: SMB_SHARE
|
||||
labelZh: SMB 共享路径
|
||||
labelEn: SMB share path
|
||||
required: false
|
||||
type: text
|
||||
@@ -0,0 +1,25 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
services:
|
||||
slink:
|
||||
container_name: slink
|
||||
env_file:
|
||||
- ./envs/global.env
|
||||
- .env
|
||||
environment:
|
||||
- USER_PASSWORD_MIN_LENGTH=8
|
||||
- USER_PASSWORD_REQUIREMENTS=15
|
||||
- IMAGE_MAX_SIZE=15M
|
||||
- STORAGE_PROVIDER=local
|
||||
image: anirdev/slink:v1.8.0
|
||||
labels:
|
||||
createdBy: Apps
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:3000
|
||||
restart: always
|
||||
volumes:
|
||||
- ${SLINK_ROOT_PATH}/data:/app/var/data
|
||||
- ${SLINK_ROOT_PATH}/images:/app/slink/images
|
||||
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
||||
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.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,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
Reference in New Issue
Block a user