1
0

(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
1566 changed files with 1159 additions and 15329 deletions

View File

@@ -1,22 +1,17 @@
additionalProperties:
formFields:
- default: 3001
- default: 40094
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: "true"
- default: /mnt
edit: true
envKey: DASHDOT_ENABLE_CPU_TEMPS
labelZh: 启用 CPU 温度
labelEn: Enable CPU temps
envKey: DATA_PATH
labelEn: The drive for which you need to view statistics
labelZh: 需要查看统计信息的驱动器
required: true
type: select
values:
- label: 启用
value: "true"
- label: 禁用
value: "false"
type: text

View File

@@ -1,21 +1,21 @@
networks:
1panel-network:
external: true
services:
dashdot:
image: mauricenino/dashdot:6.2.0
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
privileged: true
ports:
- ${PANEL_APP_PORT_HTTP}:3001
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
- "${PANEL_APP_PORT_HTTP}:3001"
volumes:
- /:/mnt/host:ro
- "/etc/os-release:/etc/os-release:ro"
- "/proc/1/ns/net:/mnt/host_ns_net:ro"
- "${DATA_PATH}:/mnt/host:ro"
privileged: true
tty: true
image: mauricenino/dashdot:6.2.0
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

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,17 +0,0 @@
additionalProperties:
formFields:
- default: 40094
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: /mnt
edit: true
envKey: DATA_PATH
labelEn: The drive for which you need to view statistics
labelZh: 需要查看统计信息的驱动器
required: true
type: text

View File

@@ -1,21 +0,0 @@
services:
dashdot:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:3001"
volumes:
- "/etc/os-release:/etc/os-release:ro"
- "/proc/1/ns/net:/mnt/host_ns_net:ro"
- "${DATA_PATH}:/mnt/host:ro"
privileged: true
tty: true
image: mauricenino/dashdot:sha-6f7544d
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true