精简提交历史记录
This commit is contained in:
7
apps/aria2-pro/latest/.env.sample
Normal file
7
apps/aria2-pro/latest/.env.sample
Normal file
@@ -0,0 +1,7 @@
|
||||
CONTAINER_NAME="aria2-pro"
|
||||
RPC_PORT_VALUE="6800"
|
||||
PANEL_APP_PORT_HTTP="6888"
|
||||
TOKEN="aria2trIyiPhA0l"
|
||||
CONFIG_PATH="./data/config"
|
||||
DOWNLOAD_PATH="./data/downloads"
|
||||
TRACKER_URL="https://trackerslist.com/all_aria2.txt"
|
||||
47
apps/aria2-pro/latest/data.yml
Normal file
47
apps/aria2-pro/latest/data.yml
Normal file
@@ -0,0 +1,47 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: 6800
|
||||
edit: true
|
||||
envKey: RPC_PORT_VALUE
|
||||
labelEn: RPC port
|
||||
labelZh: RPC端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 6888
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Listening port
|
||||
labelZh: 监听端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: aria2
|
||||
envKey: TOKEN
|
||||
labelEn: RPC secret
|
||||
labelZh: RPC密钥
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: ./data/config
|
||||
edit: true
|
||||
envKey: CONFIG_PATH
|
||||
labelEn: Path to the configuration file
|
||||
labelZh: 配置文件所在路径
|
||||
required: true
|
||||
type: text
|
||||
- default: ./data/downloads
|
||||
edit: true
|
||||
envKey: DOWNLOAD_PATH
|
||||
labelEn: Download folder path
|
||||
labelZh: 下载文件夹路径
|
||||
required: true
|
||||
type: text
|
||||
- default: https://trackerslist.com/all_aria2.txt
|
||||
edit: true
|
||||
envKey: TRACKER_URL
|
||||
labelEn: TRACKER URL
|
||||
labelZh: TRACKER链接
|
||||
required: true
|
||||
type: text
|
||||
36
apps/aria2-pro/latest/docker-compose.yml
Normal file
36
apps/aria2-pro/latest/docker-compose.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
version: '3'
|
||||
services:
|
||||
aria2-pro:
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
ports:
|
||||
- "${RPC_PORT_VALUE}:${RPC_PORT_VALUE}"
|
||||
- "${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}"
|
||||
- "${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}/udp"
|
||||
environment:
|
||||
- "PUID=${UID}"
|
||||
- "PGID=${GID}"
|
||||
- "UMASK_SET=022"
|
||||
- "RPC_SECRET=${TOKEN}"
|
||||
- "RPC_PORT=${RPC_PORT_VALUE}"
|
||||
- "LISTEN_PORT=${PANEL_APP_PORT_HTTP}"
|
||||
- "DISK_CACHE=64M"
|
||||
- "IPV6_MODE=true"
|
||||
- "UPDATE_TRACKERS=true"
|
||||
- "CUSTOM_TRACKER_URL=${TRACKER_URL}"
|
||||
- "TZ=Asia/Shanghai"
|
||||
volumes:
|
||||
- "${CONFIG_PATH}:/config"
|
||||
- "${DOWNLOAD_PATH}:/downloads"
|
||||
logging:
|
||||
options:
|
||||
max-size: 1m
|
||||
networks:
|
||||
- 1panel-network
|
||||
image: p3terx/aria2-pro:latest
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
Reference in New Issue
Block a user