(refactor) Remove env files and scripts, update config files
This commit is contained in:
117
apps/aria2-superng6/25-08-29/data.yml
Normal file
117
apps/aria2-superng6/25-08-29/data.yml
Normal file
@@ -0,0 +1,117 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "./superng6_aria2_data"
|
||||
edit: true
|
||||
envKey: ARIA2_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: "./downloads"
|
||||
edit: true
|
||||
envKey: ARIA2_DOWNLOADS_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"
|
||||
43
apps/aria2-superng6/25-08-29/docker-compose.yml
Normal file
43
apps/aria2-superng6/25-08-29/docker-compose.yml
Normal file
@@ -0,0 +1,43 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
services:
|
||||
aria2-superng6:
|
||||
image: superng6/aria2:25-08-29
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8080
|
||||
- ${PANEL_APP_PORT_RPC}:6800
|
||||
- ${PANEL_APP_PORT_BTPORT}:32516
|
||||
- ${PANEL_APP_PORT_BTPORT}:32516/udp
|
||||
volumes:
|
||||
- ${ARIA2_DOWNLOADS_PATH}:/downloads
|
||||
- ${ARIA2_ROOT_PATH}/config:/config
|
||||
- /lib/modules:/lib/modules
|
||||
environment:
|
||||
- PUID=0
|
||||
- PGID=0
|
||||
- UMASK=022
|
||||
- PORT=6800
|
||||
- WEBUI=true
|
||||
- WEBUI_PORT=8080
|
||||
- BTPORT=${PANEL_APP_PORT_BTPORT}
|
||||
- PORT=${PANEL_APP_PORT_RPC}
|
||||
- UT=true
|
||||
- RUT=true
|
||||
- SMD=true
|
||||
- CRA2B=2h
|
||||
- QUIET=true
|
||||
- SECRET=${SECRET}
|
||||
- CACHE=${CACHE}
|
||||
- CTU=${CTU}
|
||||
- FA=${FA}
|
||||
- CRA2B=${CRA2B}
|
||||
- QUIET=${QUIET}
|
||||
Reference in New Issue
Block a user