Processed apps directory via GitHub Actions

This commit is contained in:
QYG2297248353
2025-09-01 09:25:38 +00:00
parent c41f176501
commit b9ff8a66ac
35 changed files with 422 additions and 12 deletions

View File

@@ -31,3 +31,12 @@ CRA2B=2h
# 静默下载 [必填] # 静默下载 [必填]
QUIET=true QUIET=true
# 自定义挂载目录 1
CUSTOM_MOUNT_DIRECTORY_1=
# 自定义挂载目录 2
CUSTOM_MOUNT_DIRECTORY_2=
# 自定义挂载目录 3
CUSTOM_MOUNT_DIRECTORY_3=

View File

@@ -124,3 +124,24 @@ additionalProperties:
value: "false" value: "false"
- label: 开启 - label: 开启
value: "true" value: "true"
- default: ""
edit: true
envKey: CUSTOM_MOUNT_DIRECTORY_1
labelEn: Custom mount directory 1
labelZh: 自定义挂载目录 1
required: false
type: text
- default: ""
edit: true
envKey: CUSTOM_MOUNT_DIRECTORY_2
labelEn: Custom mount directory 2
labelZh: 自定义挂载目录 2
required: false
type: text
- default: ""
edit: true
envKey: CUSTOM_MOUNT_DIRECTORY_3
labelEn: Custom mount directory 3
labelZh: 自定义挂载目录 3
required: false
type: text

View File

@@ -27,12 +27,15 @@ services:
createdBy: Apps createdBy: Apps
network_mode: ${NETWORK_MODE} network_mode: ${NETWORK_MODE}
ports: ports:
- ${PANEL_APP_PORT_HTTP}:8080 - ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}
- ${PANEL_APP_PORT_RPC}:6800 - ${PANEL_APP_PORT_RPC}:${PANEL_APP_PORT_RPC}
- ${PANEL_APP_PORT_BTPORT}:32516 - ${PANEL_APP_PORT_BTPORT}:${PANEL_APP_PORT_BTPORT}
- ${PANEL_APP_PORT_BTPORT}:32516/udp - ${PANEL_APP_PORT_BTPORT}:${PANEL_APP_PORT_BTPORT}/udp
restart: always restart: always
volumes: volumes:
- ${ARIA2_ROOT_PATH}/downloads:/downloads - ${ARIA2_ROOT_PATH}/downloads:/downloads
- ${ARIA2_ROOT_PATH}/config:/config - ${ARIA2_ROOT_PATH}/config:/config
- ${CUSTOM_MOUNT_DIRECTORY_1:-./default_mount_1}:${CUSTOM_MOUNT_DIRECTORY_1:-/default_mount_1}
- ${CUSTOM_MOUNT_DIRECTORY_2:-./default_mount_2}:${CUSTOM_MOUNT_DIRECTORY_2:-/default_mount_2}
- ${CUSTOM_MOUNT_DIRECTORY_3:-./default_mount_3}:${CUSTOM_MOUNT_DIRECTORY_3:-/default_mount_3}
- /lib/modules:/lib/modules - /lib/modules:/lib/modules

View File

@@ -0,0 +1,42 @@
# 网络模式 [必填]
NETWORK_MODE=host
# 数据持久化路径 [必填]
ARIA2_ROOT_PATH=/home/aria2
# WebUI 端口 [必填]
PANEL_APP_PORT_HTTP=8080
# RPC 通讯端口 [必填]
PANEL_APP_PORT_RPC=6800
# DHT 和 BT 通讯端口 [必填]
PANEL_APP_PORT_BTPORT=32516
# 鉴权密钥 [必填]
SECRET=
# 写入缓存大小 [必填]
CACHE=1024M
# 自定义 Trackes 地址 [必填]
CTU=https://cdn.jsdelivr.net/gh/XIU2/TrackersListCollection@master/best_aria2.txt
# 下载预分配模式 [必填]
FA=falloc
# 重启Aria2B时间 [必填]
CRA2B=2h
# 静默下载 [必填]
QUIET=true
# 自定义挂载目录 1
CUSTOM_MOUNT_DIRECTORY_1=
# 自定义挂载目录 2
CUSTOM_MOUNT_DIRECTORY_2=
# 自定义挂载目录 3
CUSTOM_MOUNT_DIRECTORY_3=

View File

@@ -0,0 +1,147 @@
additionalProperties:
formFields:
- default: "host"
edit: true
envKey: NETWORK_MODE
labelEn: Drive path
labelZh: 网络模式
required: true
type: select
values:
- label: 主机网络模式
value: "host"
- label: 桥接网络模式
value: "bridge"
- label: 无网络模式
value: "none"
- label: 1panel-network
value: "1panel-network"
- default: "/home/aria2"
edit: true
envKey: ARIA2_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 8080
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
required: true
rule: paramPort
type: number
- default: 6800
edit: true
envKey: PANEL_APP_PORT_RPC
labelZh: RPC 通讯端口
labelEn: RPC communication port
required: true
rule: paramPort
type: number
- default: 32516
edit: true
envKey: PANEL_APP_PORT_BTPORT
labelZh: DHT 和 BT 通讯端口
labelEn: DHT and BT communication port
required: true
rule: paramPort
type: number
- default: ""
edit: true
envKey: SECRET
labelZh: 鉴权密钥
labelEn: Authentication key
required: true
type: password
- default: "1024M"
edit: true
envKey: CACHE
labelZh: 写入缓存大小
labelEn: Write cache size
required: true
type: text
- default: "https://cdn.jsdelivr.net/gh/XIU2/TrackersListCollection@master/best_aria2.txt"
edit: true
envKey: CTU
labelZh: 自定义 Trackes 地址
labelEn: Custom Trackes address
required: true
type: text
- default: "falloc"
edit: true
envKey: FA
labelZh: 下载预分配模式
labelEn: Download pre-allocation mode
required: true
type: select
values:
- label:
value: "none"
- label: 预分配
value: "falloc"
- label: 分片
value: "trunc"
- label: 预分配 + 分片
value: "prealloc"
- default: "2h"
edit: true
envKey: CRA2B
labelZh: 重启Aria2B时间
labelEn: Restart Aria2B time
required: true
type: select
values:
- label: 禁止重启
value: "false"
- label: 每1小时
value: "1h"
- label: 每2小时
value: "2h"
- label: 每3小时
value: "3h"
- label: 每4小时
value: "4h"
- label: 每5小时
value: "5h"
- label: 每6小时
value: "6h"
- label: 每8小时
value: "8h"
- label: 每10小时
value: "10h"
- label: 每12小时
value: "12h"
- default: "true"
edit: true
envKey: QUIET
labelZh: 静默下载
labelEn: Silent download
required: true
type: select
values:
- label: 禁用
value: "false"
- label: 开启
value: "true"
- default: ""
edit: true
envKey: CUSTOM_MOUNT_DIRECTORY_1
labelEn: Custom mount directory 1
labelZh: 自定义挂载目录 1
required: false
type: text
- default: ""
edit: true
envKey: CUSTOM_MOUNT_DIRECTORY_2
labelEn: Custom mount directory 2
labelZh: 自定义挂载目录 2
required: false
type: text
- default: ""
edit: true
envKey: CUSTOM_MOUNT_DIRECTORY_3
labelEn: Custom mount directory 3
labelZh: 自定义挂载目录 3
required: false
type: text

View File

@@ -0,0 +1,41 @@
networks:
1panel-network:
external: true
services:
aria2-superng6:
cap_add:
- NET_ADMIN
container_name: aria2-superng6
env_file:
- ./envs/global.env
- .env
environment:
- PUID=0
- PGID=0
- UMASK=022
- WEBUI=true
- WEBUI_PORT=${PANEL_APP_PORT_HTTP}
- BTPORT=${PANEL_APP_PORT_BTPORT}
- PORT=${PANEL_APP_PORT_RPC}
- UT=true
- RUT=true
- SMD=true
- CRA2B=2h
- QUIET=true
image: superng6/aria2:25-08-29
labels:
createdBy: Apps
network_mode: ${NETWORK_MODE}
ports:
- ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}
- ${PANEL_APP_PORT_RPC}:${PANEL_APP_PORT_RPC}
- ${PANEL_APP_PORT_BTPORT}:${PANEL_APP_PORT_BTPORT}
- ${PANEL_APP_PORT_BTPORT}:${PANEL_APP_PORT_BTPORT}/udp
restart: always
volumes:
- ${ARIA2_ROOT_PATH}/downloads:/downloads
- ${ARIA2_ROOT_PATH}/config:/config
- ${CUSTOM_MOUNT_DIRECTORY_1:-./default_mount_1}:${CUSTOM_MOUNT_DIRECTORY_1:-/default_mount_1}
- ${CUSTOM_MOUNT_DIRECTORY_2:-./default_mount_2}:${CUSTOM_MOUNT_DIRECTORY_2:-/default_mount_2}
- ${CUSTOM_MOUNT_DIRECTORY_3:-./default_mount_3}:${CUSTOM_MOUNT_DIRECTORY_3:-/default_mount_3}
- /lib/modules:/lib/modules

View File

@@ -24,7 +24,7 @@ services:
- -config - -config
- config.toml - config.toml
timeout: 2s timeout: 2s
image: codeberg.org/readeck/readeck:0.20.0 image: codeberg.org/readeck/readeck:0.20.1
labels: labels:
createdBy: Apps createdBy: Apps
networks: networks:

View File

@@ -23,7 +23,7 @@ services:
- -config - -config
- config.toml - config.toml
timeout: 2s timeout: 2s
image: codeberg.org/readeck/readeck:0.20.0 image: codeberg.org/readeck/readeck:0.20.1
labels: labels:
createdBy: Apps createdBy: Apps
networks: networks:

View File

@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env

View File

@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai

View File

@@ -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

View File

@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi

View File

@@ -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

View File

@@ -31,3 +31,12 @@ CRA2B=2h
# 静默下载 [必填] # 静默下载 [必填]
QUIET=true QUIET=true
# 自定义挂载目录 1
CUSTOM_MOUNT_DIRECTORY_1=
# 自定义挂载目录 2
CUSTOM_MOUNT_DIRECTORY_2=
# 自定义挂载目录 3
CUSTOM_MOUNT_DIRECTORY_3=

View File

@@ -27,12 +27,15 @@ services:
createdBy: Apps createdBy: Apps
network_mode: ${NETWORK_MODE} network_mode: ${NETWORK_MODE}
ports: ports:
- ${PANEL_APP_PORT_HTTP}:8080 - ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}
- ${PANEL_APP_PORT_RPC}:6800 - ${PANEL_APP_PORT_RPC}:${PANEL_APP_PORT_RPC}
- ${PANEL_APP_PORT_BTPORT}:32516 - ${PANEL_APP_PORT_BTPORT}:${PANEL_APP_PORT_BTPORT}
- ${PANEL_APP_PORT_BTPORT}:32516/udp - ${PANEL_APP_PORT_BTPORT}:${PANEL_APP_PORT_BTPORT}/udp
restart: always restart: always
volumes: volumes:
- ${ARIA2_ROOT_PATH}/downloads:/downloads - ${ARIA2_ROOT_PATH}/downloads:/downloads
- ${ARIA2_ROOT_PATH}/config:/config - ${ARIA2_ROOT_PATH}/config:/config
- ${CUSTOM_MOUNT_DIRECTORY_1:-./default_mount_1}:${CUSTOM_MOUNT_DIRECTORY_1:-/default_mount_1}
- ${CUSTOM_MOUNT_DIRECTORY_2:-./default_mount_2}:${CUSTOM_MOUNT_DIRECTORY_2:-/default_mount_2}
- ${CUSTOM_MOUNT_DIRECTORY_3:-./default_mount_3}:${CUSTOM_MOUNT_DIRECTORY_3:-/default_mount_3}
- /lib/modules:/lib/modules - /lib/modules:/lib/modules

View File

@@ -0,0 +1,42 @@
# 网络模式 [必填]
NETWORK_MODE=host
# 数据持久化路径 [必填]
ARIA2_ROOT_PATH=/home/aria2
# WebUI 端口 [必填]
PANEL_APP_PORT_HTTP=8080
# RPC 通讯端口 [必填]
PANEL_APP_PORT_RPC=6800
# DHT 和 BT 通讯端口 [必填]
PANEL_APP_PORT_BTPORT=32516
# 鉴权密钥 [必填]
SECRET=
# 写入缓存大小 [必填]
CACHE=1024M
# 自定义 Trackes 地址 [必填]
CTU=https://cdn.jsdelivr.net/gh/XIU2/TrackersListCollection@master/best_aria2.txt
# 下载预分配模式 [必填]
FA=falloc
# 重启Aria2B时间 [必填]
CRA2B=2h
# 静默下载 [必填]
QUIET=true
# 自定义挂载目录 1
CUSTOM_MOUNT_DIRECTORY_1=
# 自定义挂载目录 2
CUSTOM_MOUNT_DIRECTORY_2=
# 自定义挂载目录 3
CUSTOM_MOUNT_DIRECTORY_3=

View File

@@ -0,0 +1,41 @@
networks:
1panel-network:
external: true
services:
aria2-superng6:
cap_add:
- NET_ADMIN
container_name: aria2-superng6
env_file:
- ./envs/global.env
- .env
environment:
- PUID=0
- PGID=0
- UMASK=022
- WEBUI=true
- WEBUI_PORT=${PANEL_APP_PORT_HTTP}
- BTPORT=${PANEL_APP_PORT_BTPORT}
- PORT=${PANEL_APP_PORT_RPC}
- UT=true
- RUT=true
- SMD=true
- CRA2B=2h
- QUIET=true
image: superng6/aria2:25-08-29
labels:
createdBy: Apps
network_mode: ${NETWORK_MODE}
ports:
- ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}
- ${PANEL_APP_PORT_RPC}:${PANEL_APP_PORT_RPC}
- ${PANEL_APP_PORT_BTPORT}:${PANEL_APP_PORT_BTPORT}
- ${PANEL_APP_PORT_BTPORT}:${PANEL_APP_PORT_BTPORT}/udp
restart: always
volumes:
- ${ARIA2_ROOT_PATH}/downloads:/downloads
- ${ARIA2_ROOT_PATH}/config:/config
- ${CUSTOM_MOUNT_DIRECTORY_1:-./default_mount_1}:${CUSTOM_MOUNT_DIRECTORY_1:-/default_mount_1}
- ${CUSTOM_MOUNT_DIRECTORY_2:-./default_mount_2}:${CUSTOM_MOUNT_DIRECTORY_2:-/default_mount_2}
- ${CUSTOM_MOUNT_DIRECTORY_3:-./default_mount_3}:${CUSTOM_MOUNT_DIRECTORY_3:-/default_mount_3}
- /lib/modules:/lib/modules

View File

@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env

View File

@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai

View File

@@ -24,7 +24,7 @@ services:
- -config - -config
- config.toml - config.toml
timeout: 2s timeout: 2s
image: codeberg.org/readeck/readeck:0.20.0 image: codeberg.org/readeck/readeck:0.20.1
labels: labels:
createdBy: Apps createdBy: Apps
networks: networks:

View File

@@ -23,7 +23,7 @@ services:
- -config - -config
- config.toml - config.toml
timeout: 2s timeout: 2s
image: codeberg.org/readeck/readeck:0.20.0 image: codeberg.org/readeck/readeck:0.20.1
labels: labels:
createdBy: Apps createdBy: Apps
networks: networks: