feat:添加librespeed到列表 #1598

This commit is contained in:
okxlin 2024-06-19 23:02:22 +08:00
parent 2d89ab55ba
commit 63c97bc8f6
9 changed files with 302 additions and 0 deletions

View File

@ -0,0 +1,11 @@
CONTAINER_NAME="librespeed"
DISABLE_IPINFO="false"
DISTANCE="km"
EMAIL=""
ENABLE_ID_OBFUSCATION="true"
MODE="standalone"
PANEL_APP_PORT_HTTP=40262
PASSWORD="password_c6KPcx"
REDACT_IP_ADDRESSES="false"
TELEMETRY="false"
TITLE="LibreSpeed"

View File

@ -0,0 +1,102 @@
additionalProperties:
formFields:
- default: 40262
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: "standalone"
edit: true
envKey: MODE
labelEn: Mode
labelZh: 模式
required: true
type: text
- default: "LibreSpeed"
edit: true
envKey: TITLE
labelEn: Title
labelZh: 标题
required: true
type: text
- default: "false"
edit: true
envKey: TELEMETRY
labelEn: Telemetry
labelZh: 遥测
required: true
type: select
values:
- label: "false"
value: "false"
- label: "true"
value: "true"
- default: "true"
edit: true
envKey: ENABLE_ID_OBFUSCATION
labelEn: Enable ID Obfuscation
labelZh: 启用 ID 混淆
required: true
type: select
values:
- label: "false"
value: "false"
- label: "true"
value: "true"
- default: "false"
edit: true
envKey: REDACT_IP_ADDRESSES
labelEn: Redact IP Addresses
labelZh: 隐藏 IP 地址
required: true
type: select
values:
- label: "false"
value: "false"
- label: "true"
value: "true"
- default: "password"
edit: true
envKey: PASSWORD
labelEn: Password
labelZh: 密码
random: true
required: false
rule: paramCommon
type: password
- default: ""
edit: true
envKey: EMAIL
labelEn: Email address for GDPR requests (must be specified when telemetry is enabled)
labelZh: GDPR 请求的电子邮件地址 (启用遥测时必须指定)
required: false
type: text
- default: "false"
edit: true
envKey: DISABLE_IPINFO
labelEn: Disable IPInfo
labelZh: 禁用 IPInfo
required: true
type: select
values:
- label: "false"
value: "false"
- label: "true"
value: "true"
- default: "km"
edit: true
envKey: DISTANCE
labelEn: Distance
labelZh: 距离
required: false
type: select
values:
- label: "km"
value: "km"
- label: "mi"
value: "mi"
- label: ""
value: ""

View File

@ -0,0 +1,26 @@
services:
librespeed:
image: "ghcr.io/librespeed/speedtest:5.3.3"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}"
environment:
- MODE=${MODE}
- TITLE=${TITLE}
- TELEMETRY=${TELEMETRY}
- ENABLE_ID_OBFUSCATION=${ENABLE_ID_OBFUSCATION}
- REDACT_IP_ADDRESSES=${REDACT_IP_ADDRESSES}
- PASSWORD=${PASSWORD}
- EMAIL=${EMAIL}
- DISABLE_IPINFO=${DISABLE_IPINFO}
- DISTANCE=${DISTANCE}
- WEBPORT=${PANEL_APP_PORT_HTTP}
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

View File

@ -0,0 +1,5 @@
# LibreSpeed
无 Flash、无 Java、无 Websocket、无废话。
这是一个用 Javascript 实现的非常轻量级的速度测试,使用 XMLHttpRequest 和 Web Workers。

19
apps/librespeed/data.yml Normal file
View File

@ -0,0 +1,19 @@
name: Librespeed
tags:
- 实用工具
title: 开源速度测试工具
description: 开源速度测试工具
additionalProperties:
key: librespeed
name: Librespeed
tags:
- Tool
shortDescZh: 开源速度测试工具
shortDescEn: Open-source speed test tool
type: tool
crossVersionUpdate: true
limit: 0
recommend: 0
website: https://librespeed.org/
github: https://github.com/librespeed/speedtest
document: https://github.com/librespeed/speedtest

View File

@ -0,0 +1,11 @@
CONTAINER_NAME="librespeed"
DISABLE_IPINFO="false"
DISTANCE="km"
EMAIL=""
ENABLE_ID_OBFUSCATION="true"
MODE="standalone"
PANEL_APP_PORT_HTTP=40262
PASSWORD="password_c6KPcx"
REDACT_IP_ADDRESSES="false"
TELEMETRY="false"
TITLE="LibreSpeed"

View File

@ -0,0 +1,102 @@
additionalProperties:
formFields:
- default: 40262
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: "standalone"
edit: true
envKey: MODE
labelEn: Mode
labelZh: 模式
required: true
type: text
- default: "LibreSpeed"
edit: true
envKey: TITLE
labelEn: Title
labelZh: 标题
required: true
type: text
- default: "false"
edit: true
envKey: TELEMETRY
labelEn: Telemetry
labelZh: 遥测
required: true
type: select
values:
- label: "false"
value: "false"
- label: "true"
value: "true"
- default: "true"
edit: true
envKey: ENABLE_ID_OBFUSCATION
labelEn: Enable ID Obfuscation
labelZh: 启用 ID 混淆
required: true
type: select
values:
- label: "false"
value: "false"
- label: "true"
value: "true"
- default: "false"
edit: true
envKey: REDACT_IP_ADDRESSES
labelEn: Redact IP Addresses
labelZh: 隐藏 IP 地址
required: true
type: select
values:
- label: "false"
value: "false"
- label: "true"
value: "true"
- default: "password"
edit: true
envKey: PASSWORD
labelEn: Password
labelZh: 密码
random: true
required: false
rule: paramCommon
type: password
- default: ""
edit: true
envKey: EMAIL
labelEn: Email address for GDPR requests (must be specified when telemetry is enabled)
labelZh: GDPR 请求的电子邮件地址 (启用遥测时必须指定)
required: false
type: text
- default: "false"
edit: true
envKey: DISABLE_IPINFO
labelEn: Disable IPInfo
labelZh: 禁用 IPInfo
required: true
type: select
values:
- label: "false"
value: "false"
- label: "true"
value: "true"
- default: "km"
edit: true
envKey: DISTANCE
labelEn: Distance
labelZh: 距离
required: false
type: select
values:
- label: "km"
value: "km"
- label: "mi"
value: "mi"
- label: ""
value: ""

View File

@ -0,0 +1,26 @@
services:
librespeed:
image: "ghcr.io/librespeed/speedtest:latest"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}"
environment:
- MODE=${MODE}
- TITLE=${TITLE}
- TELEMETRY=${TELEMETRY}
- ENABLE_ID_OBFUSCATION=${ENABLE_ID_OBFUSCATION}
- REDACT_IP_ADDRESSES=${REDACT_IP_ADDRESSES}
- PASSWORD=${PASSWORD}
- EMAIL=${EMAIL}
- DISABLE_IPINFO=${DISABLE_IPINFO}
- DISTANCE=${DISTANCE}
- WEBPORT=${PANEL_APP_PORT_HTTP}
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

BIN
apps/librespeed/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB