feat:调整openspeedtest的适配

This commit is contained in:
okxlin 2023-12-22 00:45:11 +08:00
parent 846ed56022
commit 806a0241bb
8 changed files with 89 additions and 41 deletions

View File

@ -0,0 +1,3 @@
CONTAINER_NAME="openspeedtest"
PANEL_APP_PORT_HTTP="40188"
PANEL_APP_PORT_HTTPS="40189"

View File

@ -1,18 +1,18 @@
additionalProperties: additionalProperties:
formFields: formFields:
- default: 3000 - default: 40188
edit: true edit: true
envKey: PANEL_APP_PORT_HTTP envKey: PANEL_APP_PORT_HTTP
labelEn: HTTP Port labelEn: HTTP Port
labelZh: HTTP端口 labelZh: HTTP 端口
required: true required: true
rule: paramPort rule: paramPort
type: number type: number
- default: 3001 - default: 40189
edit: true edit: true
envKey: PANEL_APP_PORT_HTTPS envKey: PANEL_APP_PORT_HTTPS
labelEn: HTTPS Port labelEn: HTTPS Port
labelZh: HTTPS端口 labelZh: HTTPS 端口
required: true required: true
rule: paramPort rule: paramPort
type: number type: number

View File

@ -1,16 +1,16 @@
version: '3.3' version: '3'
services: services:
speedtest: speedtest:
image: openspeedtest/latest:v2.0.4 container_name: ${CONTAINER_NAME}
container_name: ${CONTAINER_NAME} restart: always
restart: always networks:
networks: - 1panel-network
- 1panel-network ports:
ports: - ${PANEL_APP_PORT_HTTP}:3000
- ${PANEL_APP_PORT_HTTP}:3000 - ${PANEL_APP_PORT_HTTPS}:3001
- ${PANEL_APP_PORT_HTTPS}:3000 image: openspeedtest/latest:v2.0.4
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:

View File

@ -1,13 +1,20 @@
name: OpenSpeedTest
tags:
- 工具
title: 免费且免费开源 HTML5 网络性能评估工具
type: 工具
description: 免费且免费开源 HTML5 网络性能评估工具
additionalProperties: additionalProperties:
key: openspeedtest key: openspeedtest
name: openspeedtest name: OpenSpeedTest
tags: tags:
- Tool - Tool
shortDescZh: SpeedTest - 免费且免费开源 HTML5 网络性能评估工具 shortDescZh: 免费且免费开源 HTML5 网络性能评估工具
shortDescEn: SpeedTest - Free & Open-Source HTML5 Network Performance Estimation Tool shortDescEn: A Free & Open-Source HTML5 Network Performance Estimation Tool
type: tool type: tool
crossVersionUpdate: true crossVersionUpdate: true
limit: 0 limit: 0
website: https://openspeedtest.com/ recommend: 0
github: https://github.com/openspeedtest/Speed-Test website: https://openspeedtest.com
document: https://github.com/openspeedtest/Speed-Test github: https://github.com/openspeedtest/Speed-Test
document: https://github.com/openspeedtest/Speed-Test

View File

@ -0,0 +1,3 @@
CONTAINER_NAME="openspeedtest"
PANEL_APP_PORT_HTTP="40188"
PANEL_APP_PORT_HTTPS="40189"

View File

@ -0,0 +1,18 @@
additionalProperties:
formFields:
- default: 40188
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: HTTP Port
labelZh: HTTP 端口
required: true
rule: paramPort
type: number
- default: 40189
edit: true
envKey: PANEL_APP_PORT_HTTPS
labelEn: HTTPS Port
labelZh: HTTPS 端口
required: true
rule: paramPort
type: number

View File

@ -0,0 +1,17 @@
version: '3'
services:
speedtest:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:3000
- ${PANEL_APP_PORT_HTTPS}:3001
image: openspeedtest/latest:latest
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB