1
0
mirror of https://github.com/pooneyy/1Panel-Appstore.git synced 2026-03-18 01:01:02 +08:00

(refactor) Remove env files and scripts, update config files

This commit is contained in:
pooneyy 2025-09-04 00:36:13 +08:00
parent 0906288534
commit 89fbe837f1
No known key found for this signature in database
1566 changed files with 1159 additions and 15329 deletions

View File

@ -1,6 +1,6 @@
additionalProperties:
formFields:
- default: "/home/acg-faka"
- default: "./data"
edit: true
envKey: ACG_FAKA_ROOT_PATH
labelZh: 数据持久化路径

View File

@ -13,8 +13,5 @@ services:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:80
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${ACG_FAKA_ROOT_PATH}/data:/var/www/html
- ${ACG_FAKA_ROOT_PATH}:/var/www/html

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -41,7 +41,7 @@ additionalProperties:
label:
en: Password
zh: 数据库用户密码
- default: ~/.affine/self-host/storage
- default: ./.affine/self-host/storage
envKey: UPLOAD_LOCATION
labelEn: Upload Location
labelZh: 上传目录
@ -50,7 +50,7 @@ additionalProperties:
label:
en: Upload Location
zh: 上传目录
- default: ~/.affine/self-host/storage
- default: ./.affine/self-host/storage
envKey: CONFIG_LOCATION
labelEn: Config Location
labelZh: 配置目录
@ -59,7 +59,7 @@ additionalProperties:
label:
en: Config Location
zh: 配置目录
- default: ~/.affine/self-host/postgres/pgdata
- default: ./.affine/self-host/postgres/pgdata
envKey: DB_DATA_LOCATION
labelEn: Postgre Data Location
labelZh: Postgre 数据目录

View File

@ -1,6 +1,6 @@
services:
affine:
image: ghcr.io/toeverything/affine-graphql:stable
image: ghcr.io/toeverything/affine:0.24.1
container_name: ${CONTAINER_NAME}
ports:
- ${PANEL_APP_PORT_HTTP}:3010
@ -12,7 +12,6 @@ services:
affine_migration:
condition: service_completed_successfully
volumes:
# custom configurations
- ${UPLOAD_LOCATION}:/root/.affine/storage
- ${CONFIG_LOCATION}:/root/.affine/config
environment:
@ -20,20 +19,22 @@ services:
- DATABASE_URL=postgresql://${DB_USERNAME}:${DB_PASSWORD}@postgres:5432/${DB_DATABASE:-affine}
- AFFINE_INDEXER_ENABLED=false
networks:
- 1panel-network
- 1panel-network
restart: always
labels:
createdBy: Apps
createdBy: Apps
affine_migration:
image: ghcr.io/toeverything/affine-graphql:stable
image: ghcr.io/toeverything/affine:0.24.1
container_name: ${CONTAINER_NAME}_migration_job
volumes:
# custom configurations
- ${UPLOAD_LOCATION}:/root/.affine/storage
- ${CONFIG_LOCATION}:/root/.affine/config
command: ['sh', '-c', 'node ./scripts/self-host-predeploy.js']
command:
- sh
- -c
- node ./scripts/self-host-predeploy.js
networks:
- 1panel-network
- 1panel-network
environment:
- REDIS_SERVER_HOST=redis
- DATABASE_URL=postgresql://${DB_USERNAME}:${DB_PASSWORD}@postgres:5432/${DB_DATABASE:-affine}
@ -44,42 +45,50 @@ services:
redis:
condition: service_healthy
labels:
createdBy: Apps
restart: no
createdBy: Apps
skipStatusCheck: 'true'
restart: 'no'
redis:
image: redis
container_name: ${CONTAINER_NAME}_redis
healthcheck:
test: ['CMD', 'redis-cli', '--raw', 'incr', 'ping']
test:
- CMD
- redis-cli
- --raw
- incr
- ping
interval: 10s
timeout: 5s
retries: 5
networks:
- 1panel-network
- 1panel-network
labels:
createdBy: Apps
createdBy: Apps
restart: always
postgres:
image: pgvector/pgvector:pg16
container_name: ${CONTAINER_NAME}_postgres
volumes:
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
networks:
- 1panel-network
- 1panel-network
labels:
createdBy: Apps
createdBy: Apps
environment:
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE:-affine}
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_INITDB_ARGS: --data-checksums
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
test:
['CMD', 'pg_isready', '-U', "${DB_USERNAME}", '-d', "${DB_DATABASE:-affine}"]
- CMD
- pg_isready
- -U
- ${DB_USERNAME}
- -d
- ${DB_DATABASE:-affine}
interval: 10s
timeout: 5s
retries: 5

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
additionalProperties:
formFields:
- default: "/home/alist"
- default: "./data"
edit: true
envKey: ALIST_ROOT_PATH
labelZh: 数据持久化路径
@ -15,60 +15,3 @@ additionalProperties:
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

View File

@ -3,7 +3,7 @@ networks:
external: true
services:
alist-aria2:
image: qyg2297248353/alist-aria2:v3.40.0
image: xhofe/alist-aria2:v3.40.0
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
@ -12,14 +12,8 @@ services:
- 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}
- ${ALIST_ROOT_PATH}:/opt/alist/data
environment:
- PUID=0
- PGID=0

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
additionalProperties:
formFields:
- default: "/home/alist"
- default: "./data"
edit: true
envKey: ALIST_ROOT_PATH
labelZh: 数据持久化路径
@ -15,60 +15,3 @@ additionalProperties:
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

View File

@ -12,14 +12,8 @@ services:
- 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}
- ${ALIST_ROOT_PATH}:/opt/alist/data
environment:
- PUID=0
- PGID=0

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,13 @@
additionalProperties:
formFields:
- default: 5000
- default: "./data"
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 端口

View File

@ -1,23 +1,21 @@
networks:
1panel-network:
external: true
services:
alist:
image: xhofe/alist:v3.40.0-ffmpeg
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:5244"
- ${PANEL_APP_PORT_HTTP}:5244
volumes:
- "${DATA_PATH}:/opt/alist/data"
- "${MOUNT_PATH}:/mnt/data"
- ${ALIST_ROOT_PATH}:/opt/alist/data
environment:
- PUID=0
- PGID=0
- UMASK=022
image: xhofe/alist-aria2:latest
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true
- FORCE=false

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
additionalProperties:
formFields:
- default: "/home/alist"
- default: "./data"
edit: true
envKey: ALIST_ROOT_PATH
labelZh: 数据持久化路径
@ -15,60 +15,3 @@ additionalProperties:
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

View File

@ -12,14 +12,8 @@ services:
- 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}
- ${ALIST_ROOT_PATH}:/opt/alist/data
environment:
- PUID=0
- PGID=0

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +0,0 @@
CONTAINER_NAME="alist"
PANEL_APP_PORT_HTTP="40034"
DATA_PATH="./data/data"
MOUNT_PATH="./data/mnt"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +0,0 @@
CONTAINER_NAME="alist"
PANEL_APP_PORT_HTTP="40034"
DATA_PATH="./data/data"
MOUNT_PATH="./data/mnt"

View File

@ -1,22 +1,6 @@
additionalProperties:
formFields:
- default: "1panel-network"
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"
- default: "./data"
edit: true
envKey: AMMDS_ROOT_PATH
labelZh: 数据持久化路径

View File

@ -9,7 +9,8 @@ services:
labels:
createdBy: "Apps"
restart: always
network_mode: ${NETWORK_MODE:-host}
networks:
- 1panel-network
tty: true
stdin_open: true
ulimits:
@ -18,9 +19,6 @@ services:
hard: 524288
ports:
- ${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:
- ${AMMDS_ROOT_PATH}/data:/ammds/data
- ${AMMDS_ROOT_PATH}/db:/ammds/db
@ -32,3 +30,11 @@ services:
- TZ=Asia/Shanghai
- NGINX_PORT=${PANEL_APP_PORT_HTTP:-8080}
- 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}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,22 +1,6 @@
additionalProperties:
formFields:
- default: "1panel-network"
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"
- default: "./data"
edit: true
envKey: AMMDS_ROOT_PATH
labelZh: 数据持久化路径

View File

@ -9,7 +9,8 @@ services:
labels:
createdBy: "Apps"
restart: always
network_mode: ${NETWORK_MODE:-host}
networks:
- 1panel-network
tty: true
stdin_open: true
ulimits:
@ -18,9 +19,6 @@ services:
hard: 524288
ports:
- ${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:
- ${AMMDS_ROOT_PATH}/data:/ammds/data
- ${AMMDS_ROOT_PATH}/db:/ammds/db
@ -32,3 +30,11 @@ services:
- TZ=Asia/Shanghai
- NGINX_PORT=${PANEL_APP_PORT_HTTP:-8080}
- 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}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
additionalProperties:
formFields:
- default: "/home/ani-rss"
- default: "./data"
edit: true
envKey: ANI_RSS_ROOT_PATH
labelZh: 数据持久化路径
@ -15,24 +15,3 @@ additionalProperties:
required: true
rule: paramPort
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

View File

@ -13,16 +13,10 @@ services:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:7789
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${ANI_RSS_ROOT_PATH}/config:/config
- ${ANI_RSS_ROOT_PATH}/downloads:/downloads
- ${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:
- PORT=7789
- CONFIG=/config

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
additionalProperties:
formFields:
- default: "/home/ani-rss"
- default: "./data"
edit: true
envKey: ANI_RSS_ROOT_PATH
labelZh: 数据持久化路径
@ -15,24 +15,3 @@ additionalProperties:
required: true
rule: paramPort
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

View File

@ -13,16 +13,10 @@ services:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:7789
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${ANI_RSS_ROOT_PATH}/config:/config
- ${ANI_RSS_ROOT_PATH}/downloads:/downloads
- ${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:
- PUID=0
- PGID=0

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
additionalProperties:
formFields:
- default: "/home/apifox-runner"
- default: "./data"
edit: true
envKey: APIFOX_RUNNER_ROOT_PATH
labelZh: 数据持久化路径
@ -15,7 +15,7 @@ additionalProperties:
required: true
rule: paramPort
type: number
- default: "http://127.0.0.1:4524"
- default: "https://api.apifox.cn"
edit: true
envKey: SERVER_APP_BASE_URL
labelZh: 应用服务地址

View File

@ -13,10 +13,11 @@ services:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:4524
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${APIFOX_RUNNER_ROOT_PATH}/runner:/opt/runner
environment:
- TZ=Asia/Shanghai
- SERVER_APP_BASE_URL=${SERVER_APP_BASE_URL}
- TEAM_ID=${TEAM_ID}
- RUNNER_ID=${RUNNER_ID}
- ACCESS_TOKEN=${ACCESS_TOKEN}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -41,15 +41,19 @@ API 文档和 API 开发调试使用同一个工具API 调试完成后即可
### 访问令牌 (Access Token)
请在ApiFox客户端前往主窗口 `团队资源` >> `通用 Runner` 获取访问令牌
进入 [ApiFox Web 端](https://app.apifox.com/),前往主窗口 `团队资源` >> `通用 Runner` >> `部署通用 Runner` 获取访问令牌
![](https://f.pz.al/pzal/2025/08/30/4b0a0b821a644.png)
![](https://f.pz.al/pzal/2025/08/30/914c00ba58d20.png)
### 团队 ID (Team ID)
请在ApiFox客户端前往主窗口 `团队设置` 获取团队 ID
同上
### Runner ID
请在ApiFox客户端前往主窗口 `团队资源` >> `通用 Runner` 获取 Runner ID
同上
---

View File

@ -1,6 +1,6 @@
additionalProperties:
formFields:
- default: "/home/archivebox"
- default: "./archivebox_data"
edit: true
envKey: ARCHIVEBOX_ROOT_PATH
labelZh: 数据持久化路径

View File

@ -13,15 +13,17 @@ services:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:8000
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${ARCHIVEBOX_ROOT_PATH}/data:/data
environment:
- TZ=Asia/Shanghai
- ADMIN_USERNAME=${ADMIN_USERNAME}
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
- ALLOWED_HOSTS=*
- CSRF_TRUSTED_ORIGINS=http://localhost:8000
- PUBLIC_INDEX=${}
- PUBLIC_SNAPSHOTS=${}
- PUBLIC_ADD_VIEW=${}
- SEARCH_BACKEND_ENGINE=sonic
- SEARCH_BACKEND_HOST_NAME=archivebox-sonic
- SEARCH_BACKEND_PASSWORD=${ADMIN_PASSWORD:-}
@ -34,9 +36,6 @@ services:
- 1panel-network
expose:
- 1491
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${ARCHIVEBOX_ROOT_PATH}/sonic:/var/lib/sonic/store
environment:

View File

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