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,28 +1,12 @@
additionalProperties:
formFields:
- default: "/home/speedtest-tracker"
- default: "./data"
edit: true
envKey: SPEEDTEST_TRACKER_ROOT_PATH
labelEn: Data persistence root path
labelZh: 数据持久化 根路径
required: true
type: text
- default: "host"
edit: true
envKey: NETWORK_MODE
labelEn: Drive path
labelZh: 网络模式
required: true
type: select
values:
- label: 主机网络模式
value: "host"
- label: 桥接网络模式
value: "bridge"
- label: 无网络模式
value: "none"
- label: 1panel-network
value: "1panel-network"
- default: 8080
edit: true
envKey: PANEL_APP_PORT_HTTP
@@ -31,11 +15,11 @@ additionalProperties:
required: true
rule: paramPort
type: number
- default: "base64:f0Ivk1nHd3QwXtR55WKC4fcc7QjrxxTnkiB02ipdl60="
- default: ""
edit: true
envKey: APP_KEY
labelZh: 应用密钥 (官网获取)
labelEn: App key (Get from official website)
labelZh: 应用密钥
labelEn: App key
required: true
type: text
- default: "SpeedTest Tracker"

View File

@@ -9,18 +9,17 @@ services:
labels:
createdBy: "Apps"
restart: always
network_mode: ${NETWORK_MODE}
network_mode:
- 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:
- ${SPEEDTEST_TRACKER_ROOT_PATH}/config:/config
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Shanghai
- APP_KEY=${APP_KEY}
- DISPLAY_TIMEZONE=Asia/Shanghai
- DB_CONNECTION=sqlite
- MAIL_MAILER=sqlite

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

@@ -16,6 +16,13 @@ Speedtest Tracker 是一个自托管的互联网性能跟踪应用程序,可
## 安装说明
#### 生成应用密钥
需要安装 openssl ,运行以下命令以生成密钥,密钥用于加密。复制包括前缀在内的此密钥,并将其粘贴为您的值。
```bash
echo -n 'base64:'; openssl rand -base64 32;
```
> admin@example.com
>
> password