Merge branch 'patch/refactor' into localApps
This commit is contained in:
commit
7ea8b78643
|
|
@ -1,6 +1,6 @@
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
formFields:
|
formFields:
|
||||||
- default: "/home/acg-faka"
|
- default: "./data"
|
||||||
edit: true
|
edit: true
|
||||||
envKey: ACG_FAKA_ROOT_PATH
|
envKey: ACG_FAKA_ROOT_PATH
|
||||||
labelZh: 数据持久化路径
|
labelZh: 数据持久化路径
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,5 @@ services:
|
||||||
- 1panel-network
|
- 1panel-network
|
||||||
ports:
|
ports:
|
||||||
- ${PANEL_APP_PORT_HTTP}:80
|
- ${PANEL_APP_PORT_HTTP}:80
|
||||||
env_file:
|
|
||||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
|
||||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
|
||||||
volumes:
|
volumes:
|
||||||
- ${ACG_FAKA_ROOT_PATH}/data:/var/www/html
|
- ${ACG_FAKA_ROOT_PATH}:/var/www/html
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -41,7 +41,7 @@ additionalProperties:
|
||||||
label:
|
label:
|
||||||
en: Password
|
en: Password
|
||||||
zh: 数据库用户密码
|
zh: 数据库用户密码
|
||||||
- default: ~/.affine/self-host/storage
|
- default: ./.affine/self-host/storage
|
||||||
envKey: UPLOAD_LOCATION
|
envKey: UPLOAD_LOCATION
|
||||||
labelEn: Upload Location
|
labelEn: Upload Location
|
||||||
labelZh: 上传目录
|
labelZh: 上传目录
|
||||||
|
|
@ -50,7 +50,7 @@ additionalProperties:
|
||||||
label:
|
label:
|
||||||
en: Upload Location
|
en: Upload Location
|
||||||
zh: 上传目录
|
zh: 上传目录
|
||||||
- default: ~/.affine/self-host/storage
|
- default: ./.affine/self-host/storage
|
||||||
envKey: CONFIG_LOCATION
|
envKey: CONFIG_LOCATION
|
||||||
labelEn: Config Location
|
labelEn: Config Location
|
||||||
labelZh: 配置目录
|
labelZh: 配置目录
|
||||||
|
|
@ -59,7 +59,7 @@ additionalProperties:
|
||||||
label:
|
label:
|
||||||
en: Config Location
|
en: Config Location
|
||||||
zh: 配置目录
|
zh: 配置目录
|
||||||
- default: ~/.affine/self-host/postgres/pgdata
|
- default: ./.affine/self-host/postgres/pgdata
|
||||||
envKey: DB_DATA_LOCATION
|
envKey: DB_DATA_LOCATION
|
||||||
labelEn: Postgre Data Location
|
labelEn: Postgre Data Location
|
||||||
labelZh: Postgre 数据目录
|
labelZh: Postgre 数据目录
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
services:
|
services:
|
||||||
affine:
|
affine:
|
||||||
image: ghcr.io/toeverything/affine-graphql:stable
|
image: ghcr.io/toeverything/affine:0.24.1
|
||||||
container_name: ${CONTAINER_NAME}
|
container_name: ${CONTAINER_NAME}
|
||||||
ports:
|
ports:
|
||||||
- ${PANEL_APP_PORT_HTTP}:3010
|
- ${PANEL_APP_PORT_HTTP}:3010
|
||||||
|
|
@ -12,7 +12,6 @@ services:
|
||||||
affine_migration:
|
affine_migration:
|
||||||
condition: service_completed_successfully
|
condition: service_completed_successfully
|
||||||
volumes:
|
volumes:
|
||||||
# custom configurations
|
|
||||||
- ${UPLOAD_LOCATION}:/root/.affine/storage
|
- ${UPLOAD_LOCATION}:/root/.affine/storage
|
||||||
- ${CONFIG_LOCATION}:/root/.affine/config
|
- ${CONFIG_LOCATION}:/root/.affine/config
|
||||||
environment:
|
environment:
|
||||||
|
|
@ -25,13 +24,15 @@ services:
|
||||||
labels:
|
labels:
|
||||||
createdBy: Apps
|
createdBy: Apps
|
||||||
affine_migration:
|
affine_migration:
|
||||||
image: ghcr.io/toeverything/affine-graphql:stable
|
image: ghcr.io/toeverything/affine:0.24.1
|
||||||
container_name: ${CONTAINER_NAME}_migration_job
|
container_name: ${CONTAINER_NAME}_migration_job
|
||||||
volumes:
|
volumes:
|
||||||
# custom configurations
|
|
||||||
- ${UPLOAD_LOCATION}:/root/.affine/storage
|
- ${UPLOAD_LOCATION}:/root/.affine/storage
|
||||||
- ${CONFIG_LOCATION}:/root/.affine/config
|
- ${CONFIG_LOCATION}:/root/.affine/config
|
||||||
command: ['sh', '-c', 'node ./scripts/self-host-predeploy.js']
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- node ./scripts/self-host-predeploy.js
|
||||||
networks:
|
networks:
|
||||||
- 1panel-network
|
- 1panel-network
|
||||||
environment:
|
environment:
|
||||||
|
|
@ -45,12 +46,18 @@ services:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
labels:
|
labels:
|
||||||
createdBy: Apps
|
createdBy: Apps
|
||||||
restart: no
|
skipStatusCheck: 'true'
|
||||||
|
restart: 'no'
|
||||||
redis:
|
redis:
|
||||||
image: redis
|
image: redis
|
||||||
container_name: ${CONTAINER_NAME}_redis
|
container_name: ${CONTAINER_NAME}_redis
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ['CMD', 'redis-cli', '--raw', 'incr', 'ping']
|
test:
|
||||||
|
- CMD
|
||||||
|
- redis-cli
|
||||||
|
- --raw
|
||||||
|
- incr
|
||||||
|
- ping
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|
@ -59,7 +66,6 @@ services:
|
||||||
labels:
|
labels:
|
||||||
createdBy: Apps
|
createdBy: Apps
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: pgvector/pgvector:pg16
|
image: pgvector/pgvector:pg16
|
||||||
container_name: ${CONTAINER_NAME}_postgres
|
container_name: ${CONTAINER_NAME}_postgres
|
||||||
|
|
@ -73,13 +79,16 @@ services:
|
||||||
POSTGRES_USER: ${DB_USERNAME}
|
POSTGRES_USER: ${DB_USERNAME}
|
||||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||||
POSTGRES_DB: ${DB_DATABASE:-affine}
|
POSTGRES_DB: ${DB_DATABASE:-affine}
|
||||||
POSTGRES_INITDB_ARGS: '--data-checksums'
|
POSTGRES_INITDB_ARGS: --data-checksums
|
||||||
# you better set a password for you database
|
|
||||||
# or you may add 'POSTGRES_HOST_AUTH_METHOD=trust' to ignore postgres security policy
|
|
||||||
POSTGRES_HOST_AUTH_METHOD: trust
|
POSTGRES_HOST_AUTH_METHOD: trust
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test:
|
test:
|
||||||
['CMD', 'pg_isready', '-U', "${DB_USERNAME}", '-d', "${DB_DATABASE:-affine}"]
|
- CMD
|
||||||
|
- pg_isready
|
||||||
|
- -U
|
||||||
|
- ${DB_USERNAME}
|
||||||
|
- -d
|
||||||
|
- ${DB_DATABASE:-affine}
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|
@ -1,183 +0,0 @@
|
||||||
additionalProperties:
|
|
||||||
formFields:
|
|
||||||
- child:
|
|
||||||
default: ""
|
|
||||||
envKey: PANEL_POSTGRES_SERVICE
|
|
||||||
required: true
|
|
||||||
type: service
|
|
||||||
default: postgresql
|
|
||||||
envKey: PANEL_POSTGRES_TYPE
|
|
||||||
labelZh: Postgres 服务 (前置检查)
|
|
||||||
labelEn: Postgres Service (Pre-check)
|
|
||||||
required: true
|
|
||||||
type: apps
|
|
||||||
values:
|
|
||||||
- label: PostgreSQL
|
|
||||||
value: postgresql
|
|
||||||
- child:
|
|
||||||
default: ""
|
|
||||||
envKey: PANEL_REDIS_SERVICE
|
|
||||||
required: true
|
|
||||||
type: service
|
|
||||||
default: redis
|
|
||||||
envKey: PANEL_REDIS_TYPE
|
|
||||||
labelZh: Redis 服务 (前置检查)
|
|
||||||
labelEn: Redis Service (Pre-check)
|
|
||||||
required: true
|
|
||||||
type: apps
|
|
||||||
values:
|
|
||||||
- label: Redis
|
|
||||||
value: redis
|
|
||||||
- default: "/home/affine"
|
|
||||||
edit: true
|
|
||||||
envKey: AFFINE_ROOT_PATH
|
|
||||||
labelZh: 数据持久化路径
|
|
||||||
labelEn: Data persistence path
|
|
||||||
required: true
|
|
||||||
type: text
|
|
||||||
- default: 3010
|
|
||||||
edit: true
|
|
||||||
envKey: PANEL_APP_PORT_HTTP
|
|
||||||
labelZh: WebUI 端口
|
|
||||||
labelEn: WebUI port
|
|
||||||
required: true
|
|
||||||
rule: paramPort
|
|
||||||
type: number
|
|
||||||
- default: 5555
|
|
||||||
edit: true
|
|
||||||
envKey: PANEL_APP_PORT_COMMUNICATION
|
|
||||||
labelZh: 通讯端口
|
|
||||||
labelEn: Communication port
|
|
||||||
required: true
|
|
||||||
rule: paramPort
|
|
||||||
type: number
|
|
||||||
- default: "http://127.0.0.1:3010"
|
|
||||||
edit: true
|
|
||||||
envKey: AFFINE_SERVER_EXTERNAL_URL
|
|
||||||
labelZh: 服务外部地址
|
|
||||||
labelEn: Service external address
|
|
||||||
required: true
|
|
||||||
type: text
|
|
||||||
- default: "false"
|
|
||||||
edit: true
|
|
||||||
envKey: AFFINE_SERVER_HTTPS
|
|
||||||
labelZh: 是否启用 HTTPS
|
|
||||||
labelEn: Enable HTTPS
|
|
||||||
required: true
|
|
||||||
type: select
|
|
||||||
values:
|
|
||||||
- label: 已开启
|
|
||||||
value: "true"
|
|
||||||
- label: 未开启
|
|
||||||
value: "false"
|
|
||||||
- default: "smtp.163.com"
|
|
||||||
edit: true
|
|
||||||
envKey: MAILER_HOST
|
|
||||||
labelZh: SMTP 服务器地址
|
|
||||||
labelEn: SMTP server address
|
|
||||||
required: true
|
|
||||||
type: text
|
|
||||||
- default: 465
|
|
||||||
edit: true
|
|
||||||
envKey: MAILER_PORT
|
|
||||||
labelZh: SMTP 服务器端口
|
|
||||||
labelEn: SMTP server port
|
|
||||||
required: true
|
|
||||||
rule: paramPort
|
|
||||||
type: number
|
|
||||||
- default: ""
|
|
||||||
edit: true
|
|
||||||
envKey: MAILER_SENDER
|
|
||||||
labelZh: 邮件发送者
|
|
||||||
labelEn: Email sender
|
|
||||||
required: true
|
|
||||||
type: text
|
|
||||||
- default: ""
|
|
||||||
edit: true
|
|
||||||
envKey: MAILER_USER
|
|
||||||
labelZh: SMTP 用户名
|
|
||||||
labelEn: SMTP username
|
|
||||||
required: true
|
|
||||||
type: text
|
|
||||||
- default: ""
|
|
||||||
edit: true
|
|
||||||
envKey: MAILER_PASSWORD
|
|
||||||
labelZh: SMTP 密码
|
|
||||||
labelEn: SMTP password
|
|
||||||
required: true
|
|
||||||
type: password
|
|
||||||
- default: "127.0.0.1"
|
|
||||||
edit: true
|
|
||||||
envKey: POSTGRES_HOST
|
|
||||||
labelZh: 数据库 主机地址
|
|
||||||
labelEn: Database Host
|
|
||||||
required: true
|
|
||||||
type: text
|
|
||||||
- default: 5432
|
|
||||||
edit: true
|
|
||||||
envKey: POSTGRES_PORT
|
|
||||||
labelZh: 数据库 端口
|
|
||||||
labelEn: Database Port
|
|
||||||
required: true
|
|
||||||
rule: paramPort
|
|
||||||
type: number
|
|
||||||
- default: "affine"
|
|
||||||
edit: true
|
|
||||||
envKey: POSTGRES_NAME
|
|
||||||
labelZh: 数据库 名称
|
|
||||||
labelEn: Database Name
|
|
||||||
required: true
|
|
||||||
rule: paramCommon
|
|
||||||
type: text
|
|
||||||
- default: "affine"
|
|
||||||
edit: true
|
|
||||||
envKey: POSTGRES_USER
|
|
||||||
labelZh: 数据库 用户名
|
|
||||||
labelEn: Database Username
|
|
||||||
required: true
|
|
||||||
type: text
|
|
||||||
- default: ""
|
|
||||||
edit: true
|
|
||||||
envKey: POSTGRES_PASSWORD
|
|
||||||
labelZh: 数据库 密码
|
|
||||||
labelEn: Database Password
|
|
||||||
random: true
|
|
||||||
required: true
|
|
||||||
rule: paramComplexity
|
|
||||||
type: password
|
|
||||||
- default: "127.0.0.1"
|
|
||||||
edit: true
|
|
||||||
envKey: REDIS_SERVER_HOST
|
|
||||||
labelZh: Redis 主机
|
|
||||||
labelEn: Redis Host
|
|
||||||
required: true
|
|
||||||
type: text
|
|
||||||
- default: 6379
|
|
||||||
edit: true
|
|
||||||
envKey: REDIS_SERVER_PORT
|
|
||||||
labelZh: Redis 端口
|
|
||||||
labelEn: Redis Port
|
|
||||||
required: true
|
|
||||||
rule: paramPort
|
|
||||||
type: number
|
|
||||||
- default: 0
|
|
||||||
edit: true
|
|
||||||
envKey: REDIS_SERVER_DATABASE
|
|
||||||
labelZh: Redis 索引 (0-20)
|
|
||||||
labelEn: Redis Index (0-20)
|
|
||||||
required: true
|
|
||||||
type: number
|
|
||||||
- default: ""
|
|
||||||
edit: true
|
|
||||||
envKey: REDIS_SERVER_USER
|
|
||||||
labelZh: Redis 用户
|
|
||||||
labelEn: Redis User
|
|
||||||
required: false
|
|
||||||
type: text
|
|
||||||
- default: ""
|
|
||||||
edit: true
|
|
||||||
envKey: REDIS_SERVER_PASSWORD
|
|
||||||
labelZh: Redis 密码
|
|
||||||
labelEn: Redis Password
|
|
||||||
required: false
|
|
||||||
type: password
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
networks:
|
|
||||||
1panel-network:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
services:
|
|
||||||
affine:
|
|
||||||
image: ghcr.io/toeverything/affine-graphql:stable-e98f035
|
|
||||||
container_name: ${CONTAINER_NAME}
|
|
||||||
labels:
|
|
||||||
createdBy: "Apps"
|
|
||||||
restart: always
|
|
||||||
networks:
|
|
||||||
- 1panel-network
|
|
||||||
ports:
|
|
||||||
- ${PANEL_APP_PORT_HTTP}:3010
|
|
||||||
- ${PANEL_APP_PORT_COMMUNICATION}:5555
|
|
||||||
env_file:
|
|
||||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
|
||||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
|
||||||
volumes:
|
|
||||||
- ${AFFINE_ROOT_PATH}/config:/root/.affine/config
|
|
||||||
- ${AFFINE_ROOT_PATH}/storage:/root/.affine/storage
|
|
||||||
environment:
|
|
||||||
- NODE_OPTIONS="--import=./scripts/register.js"
|
|
||||||
- AFFINE_CONFIG_PATH=/root/.affine/config
|
|
||||||
- REDIS_SERVER_HOST=redis
|
|
||||||
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_NAME}
|
|
||||||
- NODE_ENV=production
|
|
||||||
- TELEMETRY_ENABLE=false
|
|
||||||
- AFFINE_SERVER_HOST=localhost
|
|
||||||
- AFFINE_SERVER_PORT=3010
|
|
||||||
- AFFINE_SERVER_HTTPS=false
|
|
||||||
- AFFINE_SERVER_EXTERNAL_URL=http://127.0.0.1:3010
|
|
||||||
command:
|
|
||||||
[ 'sh', '-c', 'node ./scripts/self-host-predeploy && node ./dist/index.js' ]
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
formFields:
|
formFields:
|
||||||
- default: "/home/alist"
|
- default: "./data"
|
||||||
edit: true
|
edit: true
|
||||||
envKey: ALIST_ROOT_PATH
|
envKey: ALIST_ROOT_PATH
|
||||||
labelZh: 数据持久化路径
|
labelZh: 数据持久化路径
|
||||||
|
|
@ -15,60 +15,3 @@ additionalProperties:
|
||||||
required: true
|
required: true
|
||||||
rule: paramPort
|
rule: paramPort
|
||||||
type: number
|
type: number
|
||||||
- default: ""
|
|
||||||
edit: true
|
|
||||||
envKey: JWT_SECRET
|
|
||||||
labelZh: 加密密钥
|
|
||||||
labelEn: Encryption key
|
|
||||||
required: false
|
|
||||||
type: password
|
|
||||||
- default: ""
|
|
||||||
edit: true
|
|
||||||
envKey: SITE_URL
|
|
||||||
labelZh: 站点 URL
|
|
||||||
labelEn: Site URL
|
|
||||||
required: false
|
|
||||||
rule: paramExtUrl
|
|
||||||
type: text
|
|
||||||
- default: 48
|
|
||||||
edit: true
|
|
||||||
envKey: TOKEN_EXPIRES_IN
|
|
||||||
labelZh: 登录过期时间 (小时)
|
|
||||||
labelEn: Login expiration time (hours)
|
|
||||||
required: true
|
|
||||||
type: number
|
|
||||||
- default: 0
|
|
||||||
edit: true
|
|
||||||
envKey: DELAYED_START
|
|
||||||
labelZh: 延时启动 (秒)
|
|
||||||
labelEn: Delayed start (seconds)
|
|
||||||
required: true
|
|
||||||
type: number
|
|
||||||
- default: 0
|
|
||||||
edit: true
|
|
||||||
envKey: max_connections
|
|
||||||
labelZh: 最大连接数
|
|
||||||
labelEn: Maximum connections
|
|
||||||
required: true
|
|
||||||
type: number
|
|
||||||
- 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
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ networks:
|
||||||
external: true
|
external: true
|
||||||
services:
|
services:
|
||||||
alist-aria2:
|
alist-aria2:
|
||||||
image: qyg2297248353/alist-aria2:v3.40.0
|
image: xhofe/alist-aria2:v3.40.0
|
||||||
container_name: ${CONTAINER_NAME}
|
container_name: ${CONTAINER_NAME}
|
||||||
labels:
|
labels:
|
||||||
createdBy: "Apps"
|
createdBy: "Apps"
|
||||||
|
|
@ -12,14 +12,8 @@ services:
|
||||||
- 1panel-network
|
- 1panel-network
|
||||||
ports:
|
ports:
|
||||||
- ${PANEL_APP_PORT_HTTP}:5244
|
- ${PANEL_APP_PORT_HTTP}:5244
|
||||||
env_file:
|
|
||||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
|
||||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
|
||||||
volumes:
|
volumes:
|
||||||
- ${ALIST_ROOT_PATH}/data:/opt/alist/data
|
- ${ALIST_ROOT_PATH}:/opt/alist/data
|
||||||
- ${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}
|
|
||||||
environment:
|
environment:
|
||||||
- PUID=0
|
- PUID=0
|
||||||
- PGID=0
|
- PGID=0
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
formFields:
|
formFields:
|
||||||
- default: "/home/alist"
|
- default: "./data"
|
||||||
edit: true
|
edit: true
|
||||||
envKey: ALIST_ROOT_PATH
|
envKey: ALIST_ROOT_PATH
|
||||||
labelZh: 数据持久化路径
|
labelZh: 数据持久化路径
|
||||||
|
|
@ -15,60 +15,3 @@ additionalProperties:
|
||||||
required: true
|
required: true
|
||||||
rule: paramPort
|
rule: paramPort
|
||||||
type: number
|
type: number
|
||||||
- default: ""
|
|
||||||
edit: true
|
|
||||||
envKey: JWT_SECRET
|
|
||||||
labelZh: 加密密钥
|
|
||||||
labelEn: Encryption key
|
|
||||||
required: false
|
|
||||||
type: password
|
|
||||||
- default: ""
|
|
||||||
edit: true
|
|
||||||
envKey: SITE_URL
|
|
||||||
labelZh: 站点 URL
|
|
||||||
labelEn: Site URL
|
|
||||||
required: false
|
|
||||||
rule: paramExtUrl
|
|
||||||
type: text
|
|
||||||
- default: 48
|
|
||||||
edit: true
|
|
||||||
envKey: TOKEN_EXPIRES_IN
|
|
||||||
labelZh: 登录过期时间 (小时)
|
|
||||||
labelEn: Login expiration time (hours)
|
|
||||||
required: true
|
|
||||||
type: number
|
|
||||||
- default: 0
|
|
||||||
edit: true
|
|
||||||
envKey: DELAYED_START
|
|
||||||
labelZh: 延时启动 (秒)
|
|
||||||
labelEn: Delayed start (seconds)
|
|
||||||
required: true
|
|
||||||
type: number
|
|
||||||
- default: 0
|
|
||||||
edit: true
|
|
||||||
envKey: max_connections
|
|
||||||
labelZh: 最大连接数
|
|
||||||
labelEn: Maximum connections
|
|
||||||
required: true
|
|
||||||
type: number
|
|
||||||
- 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
|
|
||||||
|
|
|
||||||
|
|
@ -12,14 +12,8 @@ services:
|
||||||
- 1panel-network
|
- 1panel-network
|
||||||
ports:
|
ports:
|
||||||
- ${PANEL_APP_PORT_HTTP}:5244
|
- ${PANEL_APP_PORT_HTTP}:5244
|
||||||
env_file:
|
|
||||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
|
||||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
|
||||||
volumes:
|
volumes:
|
||||||
- ${ALIST_ROOT_PATH}/data:/opt/alist/data
|
- ${ALIST_ROOT_PATH}:/opt/alist/data
|
||||||
- ${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}
|
|
||||||
environment:
|
environment:
|
||||||
- PUID=0
|
- PUID=0
|
||||||
- PGID=0
|
- PGID=0
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -1,6 +1,13 @@
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
formFields:
|
formFields:
|
||||||
- default: 5000
|
- default: "./data"
|
||||||
|
edit: true
|
||||||
|
envKey: ALIST_ROOT_PATH
|
||||||
|
labelZh: 数据持久化路径
|
||||||
|
labelEn: Data persistence path
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: 5244
|
||||||
edit: true
|
edit: true
|
||||||
envKey: PANEL_APP_PORT_HTTP
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
labelZh: WebUI 端口
|
labelZh: WebUI 端口
|
||||||
|
|
@ -1,23 +1,21 @@
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
||||||
services:
|
services:
|
||||||
alist:
|
alist:
|
||||||
|
image: xhofe/alist:v3.40.0-ffmpeg
|
||||||
container_name: ${CONTAINER_NAME}
|
container_name: ${CONTAINER_NAME}
|
||||||
|
labels:
|
||||||
|
createdBy: "Apps"
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- 1panel-network
|
- 1panel-network
|
||||||
ports:
|
ports:
|
||||||
- "${PANEL_APP_PORT_HTTP}:5244"
|
- ${PANEL_APP_PORT_HTTP}:5244
|
||||||
volumes:
|
volumes:
|
||||||
- "${DATA_PATH}:/opt/alist/data"
|
- ${ALIST_ROOT_PATH}:/opt/alist/data
|
||||||
- "${MOUNT_PATH}:/mnt/data"
|
|
||||||
environment:
|
environment:
|
||||||
- PUID=0
|
- PUID=0
|
||||||
- PGID=0
|
- PGID=0
|
||||||
- UMASK=022
|
- UMASK=022
|
||||||
image: xhofe/alist-aria2:latest
|
- FORCE=false
|
||||||
labels:
|
|
||||||
createdBy: "Apps"
|
|
||||||
|
|
||||||
networks:
|
|
||||||
1panel-network:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
|
|
@ -1,74 +0,0 @@
|
||||||
additionalProperties:
|
|
||||||
formFields:
|
|
||||||
- default: "/home/alist"
|
|
||||||
edit: true
|
|
||||||
envKey: ALIST_ROOT_PATH
|
|
||||||
labelZh: 数据持久化路径
|
|
||||||
labelEn: Data persistence path
|
|
||||||
required: true
|
|
||||||
type: text
|
|
||||||
- default: 5244
|
|
||||||
edit: true
|
|
||||||
envKey: PANEL_APP_PORT_HTTP
|
|
||||||
labelZh: WebUI 端口
|
|
||||||
labelEn: WebUI port
|
|
||||||
required: true
|
|
||||||
rule: paramPort
|
|
||||||
type: number
|
|
||||||
- default: ""
|
|
||||||
edit: true
|
|
||||||
envKey: JWT_SECRET
|
|
||||||
labelZh: 加密密钥
|
|
||||||
labelEn: Encryption key
|
|
||||||
required: false
|
|
||||||
type: password
|
|
||||||
- default: ""
|
|
||||||
edit: true
|
|
||||||
envKey: SITE_URL
|
|
||||||
labelZh: 站点 URL
|
|
||||||
labelEn: Site URL
|
|
||||||
required: false
|
|
||||||
rule: paramExtUrl
|
|
||||||
type: text
|
|
||||||
- default: 48
|
|
||||||
edit: true
|
|
||||||
envKey: TOKEN_EXPIRES_IN
|
|
||||||
labelZh: 登录过期时间 (小时)
|
|
||||||
labelEn: Login expiration time (hours)
|
|
||||||
required: true
|
|
||||||
type: number
|
|
||||||
- default: 0
|
|
||||||
edit: true
|
|
||||||
envKey: DELAYED_START
|
|
||||||
labelZh: 延时启动 (秒)
|
|
||||||
labelEn: Delayed start (seconds)
|
|
||||||
required: true
|
|
||||||
type: number
|
|
||||||
- default: 0
|
|
||||||
edit: true
|
|
||||||
envKey: max_connections
|
|
||||||
labelZh: 最大连接数
|
|
||||||
labelEn: Maximum connections
|
|
||||||
required: true
|
|
||||||
type: number
|
|
||||||
- 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
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
||||||
networks:
|
|
||||||
1panel-network:
|
|
||||||
external: true
|
|
||||||
services:
|
|
||||||
alist:
|
|
||||||
image: qyg2297248353/alist:v3.40.0-ffmpeg
|
|
||||||
container_name: ${CONTAINER_NAME}
|
|
||||||
labels:
|
|
||||||
createdBy: "Apps"
|
|
||||||
restart: always
|
|
||||||
networks:
|
|
||||||
- 1panel-network
|
|
||||||
ports:
|
|
||||||
- ${PANEL_APP_PORT_HTTP}:5244
|
|
||||||
env_file:
|
|
||||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
|
||||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
|
||||||
volumes:
|
|
||||||
- ${ALIST_ROOT_PATH}/data:/opt/alist/data
|
|
||||||
- ${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}
|
|
||||||
environment:
|
|
||||||
- PUID=0
|
|
||||||
- PGID=0
|
|
||||||
- UMASK=022
|
|
||||||
- FORCE=false
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
formFields:
|
formFields:
|
||||||
- default: "/home/alist"
|
- default: "./data"
|
||||||
edit: true
|
edit: true
|
||||||
envKey: ALIST_ROOT_PATH
|
envKey: ALIST_ROOT_PATH
|
||||||
labelZh: 数据持久化路径
|
labelZh: 数据持久化路径
|
||||||
|
|
@ -15,60 +15,3 @@ additionalProperties:
|
||||||
required: true
|
required: true
|
||||||
rule: paramPort
|
rule: paramPort
|
||||||
type: number
|
type: number
|
||||||
- default: ""
|
|
||||||
edit: true
|
|
||||||
envKey: JWT_SECRET
|
|
||||||
labelZh: 加密密钥
|
|
||||||
labelEn: Encryption key
|
|
||||||
required: false
|
|
||||||
type: password
|
|
||||||
- default: ""
|
|
||||||
edit: true
|
|
||||||
envKey: SITE_URL
|
|
||||||
labelZh: 站点 URL
|
|
||||||
labelEn: Site URL
|
|
||||||
required: false
|
|
||||||
rule: paramExtUrl
|
|
||||||
type: text
|
|
||||||
- default: 48
|
|
||||||
edit: true
|
|
||||||
envKey: TOKEN_EXPIRES_IN
|
|
||||||
labelZh: 登录过期时间 (小时)
|
|
||||||
labelEn: Login expiration time (hours)
|
|
||||||
required: true
|
|
||||||
type: number
|
|
||||||
- default: 0
|
|
||||||
edit: true
|
|
||||||
envKey: DELAYED_START
|
|
||||||
labelZh: 延时启动 (秒)
|
|
||||||
labelEn: Delayed start (seconds)
|
|
||||||
required: true
|
|
||||||
type: number
|
|
||||||
- default: 0
|
|
||||||
edit: true
|
|
||||||
envKey: max_connections
|
|
||||||
labelZh: 最大连接数
|
|
||||||
labelEn: Maximum connections
|
|
||||||
required: true
|
|
||||||
type: number
|
|
||||||
- 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
|
|
||||||
|
|
|
||||||
|
|
@ -12,14 +12,8 @@ services:
|
||||||
- 1panel-network
|
- 1panel-network
|
||||||
ports:
|
ports:
|
||||||
- ${PANEL_APP_PORT_HTTP}:5244
|
- ${PANEL_APP_PORT_HTTP}:5244
|
||||||
env_file:
|
|
||||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
|
||||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
|
||||||
volumes:
|
volumes:
|
||||||
- ${ALIST_ROOT_PATH}/data:/opt/alist/data
|
- ${ALIST_ROOT_PATH}:/opt/alist/data
|
||||||
- ${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}
|
|
||||||
environment:
|
environment:
|
||||||
- PUID=0
|
- PUID=0
|
||||||
- PGID=0
|
- PGID=0
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
additionalProperties:
|
|
||||||
formFields:
|
|
||||||
- default: 40034
|
|
||||||
edit: true
|
|
||||||
envKey: PANEL_APP_PORT_HTTP
|
|
||||||
labelEn: Port
|
|
||||||
labelZh: 端口
|
|
||||||
required: true
|
|
||||||
rule: paramPort
|
|
||||||
type: number
|
|
||||||
- default: ./data/data
|
|
||||||
edit: true
|
|
||||||
envKey: DATA_PATH
|
|
||||||
labelEn: Data folder path
|
|
||||||
labelZh: 数据文件夹路径
|
|
||||||
required: true
|
|
||||||
type: text
|
|
||||||
- default: ./data/mnt
|
|
||||||
edit: true
|
|
||||||
envKey: MOUNT_PATH
|
|
||||||
labelEn: Mount folder path
|
|
||||||
labelZh: 挂载文件夹路径
|
|
||||||
required: true
|
|
||||||
type: text
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
services:
|
|
||||||
alist:
|
|
||||||
container_name: ${CONTAINER_NAME}
|
|
||||||
restart: always
|
|
||||||
networks:
|
|
||||||
- 1panel-network
|
|
||||||
ports:
|
|
||||||
- "${PANEL_APP_PORT_HTTP}:5244"
|
|
||||||
volumes:
|
|
||||||
- "${DATA_PATH}:/opt/alist/data"
|
|
||||||
- "${MOUNT_PATH}:/mnt/data"
|
|
||||||
environment:
|
|
||||||
- PUID=0
|
|
||||||
- PGID=0
|
|
||||||
- UMASK=022
|
|
||||||
image: xhofe/alist-aria2:latest
|
|
||||||
labels:
|
|
||||||
createdBy: "Apps"
|
|
||||||
|
|
||||||
networks:
|
|
||||||
1panel-network:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
CONTAINER_NAME="alist"
|
|
||||||
PANEL_APP_PORT_HTTP="40034"
|
|
||||||
DATA_PATH="./data/data"
|
|
||||||
MOUNT_PATH="./data/mnt"
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
additionalProperties:
|
|
||||||
formFields:
|
|
||||||
- default: 40034
|
|
||||||
edit: true
|
|
||||||
envKey: PANEL_APP_PORT_HTTP
|
|
||||||
labelEn: Port
|
|
||||||
labelZh: 端口
|
|
||||||
required: true
|
|
||||||
rule: paramPort
|
|
||||||
type: number
|
|
||||||
- default: ./data/data
|
|
||||||
edit: true
|
|
||||||
envKey: DATA_PATH
|
|
||||||
labelEn: Data folder path
|
|
||||||
labelZh: 数据文件夹路径
|
|
||||||
required: true
|
|
||||||
type: text
|
|
||||||
- default: ./data/mnt
|
|
||||||
edit: true
|
|
||||||
envKey: MOUNT_PATH
|
|
||||||
labelEn: Mount folder path
|
|
||||||
labelZh: 挂载文件夹路径
|
|
||||||
required: true
|
|
||||||
type: text
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
CONTAINER_NAME="alist"
|
|
||||||
PANEL_APP_PORT_HTTP="40034"
|
|
||||||
DATA_PATH="./data/data"
|
|
||||||
MOUNT_PATH="./data/mnt"
|
|
||||||
|
|
@ -1,22 +1,6 @@
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
formFields:
|
formFields:
|
||||||
- default: "1panel-network"
|
- default: "./data"
|
||||||
edit: true
|
|
||||||
envKey: NETWORK_MODE
|
|
||||||
labelZh: 网络模式
|
|
||||||
labelEn: Network mode
|
|
||||||
required: true
|
|
||||||
type: select
|
|
||||||
values:
|
|
||||||
- label: 主机网络模式
|
|
||||||
value: "host"
|
|
||||||
- label: 桥接网络模式
|
|
||||||
value: "bridge"
|
|
||||||
- label: 无网络模式
|
|
||||||
value: "none"
|
|
||||||
- label: 1panel-network
|
|
||||||
value: "1panel-network"
|
|
||||||
- default: "/home/ammds"
|
|
||||||
edit: true
|
edit: true
|
||||||
envKey: AMMDS_ROOT_PATH
|
envKey: AMMDS_ROOT_PATH
|
||||||
labelZh: 数据持久化路径
|
labelZh: 数据持久化路径
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,8 @@ services:
|
||||||
labels:
|
labels:
|
||||||
createdBy: "Apps"
|
createdBy: "Apps"
|
||||||
restart: always
|
restart: always
|
||||||
network_mode: ${NETWORK_MODE:-host}
|
networks:
|
||||||
|
- 1panel-network
|
||||||
tty: true
|
tty: true
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
ulimits:
|
ulimits:
|
||||||
|
|
@ -18,9 +19,6 @@ services:
|
||||||
hard: 524288
|
hard: 524288
|
||||||
ports:
|
ports:
|
||||||
- ${PANEL_APP_PORT_HTTP:-8080}:${PANEL_APP_PORT_HTTP:-8080}
|
- ${PANEL_APP_PORT_HTTP:-8080}:${PANEL_APP_PORT_HTTP:-8080}
|
||||||
env_file:
|
|
||||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
|
||||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
|
||||||
volumes:
|
volumes:
|
||||||
- ${AMMDS_ROOT_PATH}/data:/ammds/data
|
- ${AMMDS_ROOT_PATH}/data:/ammds/data
|
||||||
- ${AMMDS_ROOT_PATH}/db:/ammds/db
|
- ${AMMDS_ROOT_PATH}/db:/ammds/db
|
||||||
|
|
@ -32,3 +30,11 @@ services:
|
||||||
- TZ=Asia/Shanghai
|
- TZ=Asia/Shanghai
|
||||||
- NGINX_PORT=${PANEL_APP_PORT_HTTP:-8080}
|
- NGINX_PORT=${PANEL_APP_PORT_HTTP:-8080}
|
||||||
- AMMDS_SERVER_PORT=${PANEL_APP_PORT_API:-9523}
|
- AMMDS_SERVER_PORT=${PANEL_APP_PORT_API:-9523}
|
||||||
|
- AMMDS_METATUBE_URL=${AMMDS_METATUBE_URL}
|
||||||
|
- AMMDS_METATUBE_TOKEN=${AMMDS_METATUBE_TOKEN}
|
||||||
|
- AMMDS_PROWLARR_URL=${AMMDS_PROWLARR_URL}
|
||||||
|
- AMMDS_PROWLARR_TOKEN=${AMMDS_PROWLARR_TOKEN}
|
||||||
|
- AMMDS_IYUU_TOKEN=${AMMDS_IYUU_TOKEN}
|
||||||
|
- AMMDS_QBITTORRENT_URL=${AMMDS_QBITTORRENT_URL}
|
||||||
|
- AMMDS_QBITTORRENT_USERNAME=${AMMDS_QBITTORRENT_USERNAME}
|
||||||
|
- AMMDS_QBITTORRENT_PASSWORD=${AMMDS_QBITTORRENT_PASSWORD}
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -1,22 +1,6 @@
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
formFields:
|
formFields:
|
||||||
- default: "1panel-network"
|
- default: "./data"
|
||||||
edit: true
|
|
||||||
envKey: NETWORK_MODE
|
|
||||||
labelZh: 网络模式
|
|
||||||
labelEn: Network mode
|
|
||||||
required: true
|
|
||||||
type: select
|
|
||||||
values:
|
|
||||||
- label: 主机网络模式
|
|
||||||
value: "host"
|
|
||||||
- label: 桥接网络模式
|
|
||||||
value: "bridge"
|
|
||||||
- label: 无网络模式
|
|
||||||
value: "none"
|
|
||||||
- label: 1panel-network
|
|
||||||
value: "1panel-network"
|
|
||||||
- default: "/home/ammds"
|
|
||||||
edit: true
|
edit: true
|
||||||
envKey: AMMDS_ROOT_PATH
|
envKey: AMMDS_ROOT_PATH
|
||||||
labelZh: 数据持久化路径
|
labelZh: 数据持久化路径
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,8 @@ services:
|
||||||
labels:
|
labels:
|
||||||
createdBy: "Apps"
|
createdBy: "Apps"
|
||||||
restart: always
|
restart: always
|
||||||
network_mode: ${NETWORK_MODE:-host}
|
networks:
|
||||||
|
- 1panel-network
|
||||||
tty: true
|
tty: true
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
ulimits:
|
ulimits:
|
||||||
|
|
@ -18,9 +19,6 @@ services:
|
||||||
hard: 524288
|
hard: 524288
|
||||||
ports:
|
ports:
|
||||||
- ${PANEL_APP_PORT_HTTP:-8080}:${PANEL_APP_PORT_HTTP:-8080}
|
- ${PANEL_APP_PORT_HTTP:-8080}:${PANEL_APP_PORT_HTTP:-8080}
|
||||||
env_file:
|
|
||||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
|
||||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
|
||||||
volumes:
|
volumes:
|
||||||
- ${AMMDS_ROOT_PATH}/data:/ammds/data
|
- ${AMMDS_ROOT_PATH}/data:/ammds/data
|
||||||
- ${AMMDS_ROOT_PATH}/db:/ammds/db
|
- ${AMMDS_ROOT_PATH}/db:/ammds/db
|
||||||
|
|
@ -32,3 +30,11 @@ services:
|
||||||
- TZ=Asia/Shanghai
|
- TZ=Asia/Shanghai
|
||||||
- NGINX_PORT=${PANEL_APP_PORT_HTTP:-8080}
|
- NGINX_PORT=${PANEL_APP_PORT_HTTP:-8080}
|
||||||
- AMMDS_SERVER_PORT=${PANEL_APP_PORT_API:-9523}
|
- AMMDS_SERVER_PORT=${PANEL_APP_PORT_API:-9523}
|
||||||
|
- AMMDS_METATUBE_URL=${AMMDS_METATUBE_URL}
|
||||||
|
- AMMDS_METATUBE_TOKEN=${AMMDS_METATUBE_TOKEN}
|
||||||
|
- AMMDS_PROWLARR_URL=${AMMDS_PROWLARR_URL}
|
||||||
|
- AMMDS_PROWLARR_TOKEN=${AMMDS_PROWLARR_TOKEN}
|
||||||
|
- AMMDS_IYUU_TOKEN=${AMMDS_IYUU_TOKEN}
|
||||||
|
- AMMDS_QBITTORRENT_URL=${AMMDS_QBITTORRENT_URL}
|
||||||
|
- AMMDS_QBITTORRENT_USERNAME=${AMMDS_QBITTORRENT_USERNAME}
|
||||||
|
- AMMDS_QBITTORRENT_PASSWORD=${AMMDS_QBITTORRENT_PASSWORD}
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
formFields:
|
formFields:
|
||||||
- default: "/home/ani-rss"
|
- default: "./data"
|
||||||
edit: true
|
edit: true
|
||||||
envKey: ANI_RSS_ROOT_PATH
|
envKey: ANI_RSS_ROOT_PATH
|
||||||
labelZh: 数据持久化路径
|
labelZh: 数据持久化路径
|
||||||
|
|
@ -15,24 +15,3 @@ additionalProperties:
|
||||||
required: true
|
required: true
|
||||||
rule: paramPort
|
rule: paramPort
|
||||||
type: number
|
type: number
|
||||||
- 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
|
|
||||||
|
|
|
||||||
|
|
@ -13,16 +13,10 @@ services:
|
||||||
- 1panel-network
|
- 1panel-network
|
||||||
ports:
|
ports:
|
||||||
- ${PANEL_APP_PORT_HTTP}:7789
|
- ${PANEL_APP_PORT_HTTP}:7789
|
||||||
env_file:
|
|
||||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
|
||||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
|
||||||
volumes:
|
volumes:
|
||||||
- ${ANI_RSS_ROOT_PATH}/config:/config
|
- ${ANI_RSS_ROOT_PATH}/config:/config
|
||||||
- ${ANI_RSS_ROOT_PATH}/downloads:/downloads
|
- ${ANI_RSS_ROOT_PATH}/downloads:/downloads
|
||||||
- ${ANI_RSS_ROOT_PATH}/Media:/Media
|
- ${ANI_RSS_ROOT_PATH}/Media:/Media
|
||||||
- ${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}
|
|
||||||
environment:
|
environment:
|
||||||
- PORT=7789
|
- PORT=7789
|
||||||
- CONFIG=/config
|
- CONFIG=/config
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
formFields:
|
formFields:
|
||||||
- default: "/home/ani-rss"
|
- default: "./data"
|
||||||
edit: true
|
edit: true
|
||||||
envKey: ANI_RSS_ROOT_PATH
|
envKey: ANI_RSS_ROOT_PATH
|
||||||
labelZh: 数据持久化路径
|
labelZh: 数据持久化路径
|
||||||
|
|
@ -15,24 +15,3 @@ additionalProperties:
|
||||||
required: true
|
required: true
|
||||||
rule: paramPort
|
rule: paramPort
|
||||||
type: number
|
type: number
|
||||||
- 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
|
|
||||||
|
|
|
||||||
|
|
@ -13,16 +13,10 @@ services:
|
||||||
- 1panel-network
|
- 1panel-network
|
||||||
ports:
|
ports:
|
||||||
- ${PANEL_APP_PORT_HTTP}:7789
|
- ${PANEL_APP_PORT_HTTP}:7789
|
||||||
env_file:
|
|
||||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
|
||||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
|
||||||
volumes:
|
volumes:
|
||||||
- ${ANI_RSS_ROOT_PATH}/config:/config
|
- ${ANI_RSS_ROOT_PATH}/config:/config
|
||||||
- ${ANI_RSS_ROOT_PATH}/downloads:/downloads
|
- ${ANI_RSS_ROOT_PATH}/downloads:/downloads
|
||||||
- ${ANI_RSS_ROOT_PATH}/Media:/Media
|
- ${ANI_RSS_ROOT_PATH}/Media:/Media
|
||||||
- ${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}
|
|
||||||
environment:
|
environment:
|
||||||
- PUID=0
|
- PUID=0
|
||||||
- PGID=0
|
- PGID=0
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
formFields:
|
formFields:
|
||||||
- default: "/home/apifox-runner"
|
- default: "./data"
|
||||||
edit: true
|
edit: true
|
||||||
envKey: APIFOX_RUNNER_ROOT_PATH
|
envKey: APIFOX_RUNNER_ROOT_PATH
|
||||||
labelZh: 数据持久化路径
|
labelZh: 数据持久化路径
|
||||||
|
|
@ -15,7 +15,7 @@ additionalProperties:
|
||||||
required: true
|
required: true
|
||||||
rule: paramPort
|
rule: paramPort
|
||||||
type: number
|
type: number
|
||||||
- default: "http://127.0.0.1:4524"
|
- default: "https://api.apifox.cn"
|
||||||
edit: true
|
edit: true
|
||||||
envKey: SERVER_APP_BASE_URL
|
envKey: SERVER_APP_BASE_URL
|
||||||
labelZh: 应用服务地址
|
labelZh: 应用服务地址
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,11 @@ services:
|
||||||
- 1panel-network
|
- 1panel-network
|
||||||
ports:
|
ports:
|
||||||
- ${PANEL_APP_PORT_HTTP}:4524
|
- ${PANEL_APP_PORT_HTTP}:4524
|
||||||
env_file:
|
|
||||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
|
||||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
|
||||||
volumes:
|
volumes:
|
||||||
- ${APIFOX_RUNNER_ROOT_PATH}/runner:/opt/runner
|
- ${APIFOX_RUNNER_ROOT_PATH}/runner:/opt/runner
|
||||||
environment:
|
environment:
|
||||||
- TZ=Asia/Shanghai
|
- TZ=Asia/Shanghai
|
||||||
|
- SERVER_APP_BASE_URL=${SERVER_APP_BASE_URL}
|
||||||
|
- TEAM_ID=${TEAM_ID}
|
||||||
|
- RUNNER_ID=${RUNNER_ID}
|
||||||
|
- ACCESS_TOKEN=${ACCESS_TOKEN}
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -41,15 +41,19 @@ API 文档和 API 开发调试使用同一个工具,API 调试完成后即可
|
||||||
|
|
||||||
### 访问令牌 (Access Token)
|
### 访问令牌 (Access Token)
|
||||||
|
|
||||||
请在ApiFox客户端,前往主窗口 `团队资源` >> `通用 Runner` 获取访问令牌
|
进入 [ApiFox Web 端](https://app.apifox.com/),前往主窗口 `团队资源` >> `通用 Runner` >> `部署通用 Runner` 获取访问令牌
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
### 团队 ID (Team ID)
|
### 团队 ID (Team ID)
|
||||||
|
|
||||||
请在ApiFox客户端,前往主窗口 `团队设置` 获取团队 ID
|
同上
|
||||||
|
|
||||||
### Runner ID
|
### Runner ID
|
||||||
|
|
||||||
请在ApiFox客户端,前往主窗口 `团队资源` >> `通用 Runner` 获取 Runner ID
|
同上
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
formFields:
|
formFields:
|
||||||
- default: "/home/archivebox"
|
- default: "./archivebox_data"
|
||||||
edit: true
|
edit: true
|
||||||
envKey: ARCHIVEBOX_ROOT_PATH
|
envKey: ARCHIVEBOX_ROOT_PATH
|
||||||
labelZh: 数据持久化路径
|
labelZh: 数据持久化路径
|
||||||
|
|
|
||||||
|
|
@ -13,15 +13,17 @@ services:
|
||||||
- 1panel-network
|
- 1panel-network
|
||||||
ports:
|
ports:
|
||||||
- ${PANEL_APP_PORT_HTTP}:8000
|
- ${PANEL_APP_PORT_HTTP}:8000
|
||||||
env_file:
|
|
||||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
|
||||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
|
||||||
volumes:
|
volumes:
|
||||||
- ${ARCHIVEBOX_ROOT_PATH}/data:/data
|
- ${ARCHIVEBOX_ROOT_PATH}/data:/data
|
||||||
environment:
|
environment:
|
||||||
- TZ=Asia/Shanghai
|
- TZ=Asia/Shanghai
|
||||||
|
- ADMIN_USERNAME=${ADMIN_USERNAME}
|
||||||
|
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
||||||
- ALLOWED_HOSTS=*
|
- ALLOWED_HOSTS=*
|
||||||
- CSRF_TRUSTED_ORIGINS=http://localhost:8000
|
- CSRF_TRUSTED_ORIGINS=http://localhost:8000
|
||||||
|
- PUBLIC_INDEX=${}
|
||||||
|
- PUBLIC_SNAPSHOTS=${}
|
||||||
|
- PUBLIC_ADD_VIEW=${}
|
||||||
- SEARCH_BACKEND_ENGINE=sonic
|
- SEARCH_BACKEND_ENGINE=sonic
|
||||||
- SEARCH_BACKEND_HOST_NAME=archivebox-sonic
|
- SEARCH_BACKEND_HOST_NAME=archivebox-sonic
|
||||||
- SEARCH_BACKEND_PASSWORD=${ADMIN_PASSWORD:-}
|
- SEARCH_BACKEND_PASSWORD=${ADMIN_PASSWORD:-}
|
||||||
|
|
@ -34,9 +36,6 @@ services:
|
||||||
- 1panel-network
|
- 1panel-network
|
||||||
expose:
|
expose:
|
||||||
- 1491
|
- 1491
|
||||||
env_file:
|
|
||||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
|
||||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
|
||||||
volumes:
|
volumes:
|
||||||
- ${ARCHIVEBOX_ROOT_PATH}/sonic:/var/lib/sonic/store
|
- ${ARCHIVEBOX_ROOT_PATH}/sonic:/var/lib/sonic/store
|
||||||
environment:
|
environment:
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
# copyright© 2024 XinJiang Ms Studio
|
|
||||||
ENV_FILE=.env
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue