(refactor) Remove env files and scripts, update config files
This commit is contained in:
@@ -1,28 +1,19 @@
|
||||
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"
|
||||
- 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
|
||||
@@ -3,12 +3,13 @@ networks:
|
||||
external: true
|
||||
services:
|
||||
aria2-superng6:
|
||||
image: superng6/aria2:stable-25-06-09
|
||||
image: superng6/aria2:25-08-29
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
network_mode: ${NETWORK_MODE}
|
||||
networks:
|
||||
- 1panel-network
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
ports:
|
||||
@@ -16,19 +17,17 @@ services:
|
||||
- ${PANEL_APP_PORT_RPC}:6800
|
||||
- ${PANEL_APP_PORT_BTPORT}:32516
|
||||
- ${PANEL_APP_PORT_BTPORT}:32516/udp
|
||||
env_file:
|
||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
volumes:
|
||||
- ${ARIA2_ROOT_PATH}/downloads:/downloads
|
||||
- ${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=${PANEL_APP_PORT_HTTP}
|
||||
- WEBUI_PORT=8080
|
||||
- BTPORT=${PANEL_APP_PORT_BTPORT}
|
||||
- PORT=${PANEL_APP_PORT_RPC}
|
||||
- UT=true
|
||||
@@ -36,3 +35,9 @@ services:
|
||||
- SMD=true
|
||||
- CRA2B=2h
|
||||
- QUIET=true
|
||||
- SECRET=${SECRET}
|
||||
- CACHE=${CACHE}
|
||||
- CTU=${CTU}
|
||||
- FA=${FA}
|
||||
- CRA2B=${CRA2B}
|
||||
- QUIET=${QUIET}
|
||||
@@ -11,5 +11,5 @@
|
||||
crossVersionUpdate: true
|
||||
limit: 0
|
||||
website: https://github.com/SuperNG6/docker-aria2/
|
||||
github: https://github.com/aria2/aria2/
|
||||
github: https://github.com/SuperNG6/docker-aria2/
|
||||
document: https://github.com/SuperNG6/docker-aria2/
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
||||
@@ -1,2 +0,0 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/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
|
||||
@@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/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