diff --git a/apps/librespeed/5.3.3/.env.sample b/apps/librespeed/5.3.3/.env.sample new file mode 100644 index 00000000..f0ec5d40 --- /dev/null +++ b/apps/librespeed/5.3.3/.env.sample @@ -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" diff --git a/apps/librespeed/5.3.3/data.yml b/apps/librespeed/5.3.3/data.yml new file mode 100644 index 00000000..3ae20400 --- /dev/null +++ b/apps/librespeed/5.3.3/data.yml @@ -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: "" diff --git a/apps/librespeed/5.3.3/docker-compose.yml b/apps/librespeed/5.3.3/docker-compose.yml new file mode 100644 index 00000000..711960bc --- /dev/null +++ b/apps/librespeed/5.3.3/docker-compose.yml @@ -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 diff --git a/apps/librespeed/README.md b/apps/librespeed/README.md new file mode 100644 index 00000000..60a14941 --- /dev/null +++ b/apps/librespeed/README.md @@ -0,0 +1,5 @@ +# LibreSpeed + +无 Flash、无 Java、无 Websocket、无废话。 + +这是一个用 Javascript 实现的非常轻量级的速度测试,使用 XMLHttpRequest 和 Web Workers。 \ No newline at end of file diff --git a/apps/librespeed/data.yml b/apps/librespeed/data.yml new file mode 100644 index 00000000..6f3f26a5 --- /dev/null +++ b/apps/librespeed/data.yml @@ -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 diff --git a/apps/librespeed/latest/.env.sample b/apps/librespeed/latest/.env.sample new file mode 100644 index 00000000..f0ec5d40 --- /dev/null +++ b/apps/librespeed/latest/.env.sample @@ -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" diff --git a/apps/librespeed/latest/data.yml b/apps/librespeed/latest/data.yml new file mode 100644 index 00000000..3ae20400 --- /dev/null +++ b/apps/librespeed/latest/data.yml @@ -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: "" diff --git a/apps/librespeed/latest/docker-compose.yml b/apps/librespeed/latest/docker-compose.yml new file mode 100644 index 00000000..7e2e8874 --- /dev/null +++ b/apps/librespeed/latest/docker-compose.yml @@ -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 diff --git a/apps/librespeed/logo.png b/apps/librespeed/logo.png new file mode 100644 index 00000000..153102dd Binary files /dev/null and b/apps/librespeed/logo.png differ