diff --git a/apps/iperf/README.md b/apps/iperf/README.md new file mode 100644 index 00000000..bf9ecd04 --- /dev/null +++ b/apps/iperf/README.md @@ -0,0 +1,2 @@ +# iperf +TCP、UDP 和 SCTP 网络带宽测量工具 \ No newline at end of file diff --git a/apps/iperf/data.yml b/apps/iperf/data.yml new file mode 100644 index 00000000..4f2cb4cc --- /dev/null +++ b/apps/iperf/data.yml @@ -0,0 +1,19 @@ +name: iPerf +tags: + - 实用工具 +title: 网络性能测试工具 +description: 网络性能测试工具 +additionalProperties: + key: iperf + name: iPerf + tags: + - Tool + shortDescZh: 网络性能测试工具 + shortDescEn: Network performance testing tool + type: tool + crossVersionUpdate: true + limit: 0 + recommend: 0 + website: https://software.es.net/iperf/ + github: https://github.com/nerdalert/iperf3 + document: https://software.es.net/iperf/ diff --git a/apps/iperf/latest/.env.sample b/apps/iperf/latest/.env.sample new file mode 100644 index 00000000..a24915b2 --- /dev/null +++ b/apps/iperf/latest/.env.sample @@ -0,0 +1,4 @@ +CONTAINER_NAME="iperf" +IPERF_COMMAND="-s" +PANEL_APP_PORT_HTTP=40267 +TIME_ZONE="Asia/Shanghai" diff --git a/apps/iperf/latest/data.yml b/apps/iperf/latest/data.yml new file mode 100644 index 00000000..c8bfded8 --- /dev/null +++ b/apps/iperf/latest/data.yml @@ -0,0 +1,24 @@ +additionalProperties: + formFields: + - default: "40267" + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: "Asia/Shanghai" + edit: true + envKey: TIME_ZONE + labelEn: Time Zone + labelZh: 时区 + required: true + type: text + - default: "-s" + edit: true + envKey: IPERF_COMMAND + labelEn: iPerf Command + labelZh: iPerf 命令 + required: true + type: text diff --git a/apps/iperf/latest/docker-compose.yml b/apps/iperf/latest/docker-compose.yml new file mode 100644 index 00000000..24f93d5a --- /dev/null +++ b/apps/iperf/latest/docker-compose.yml @@ -0,0 +1,20 @@ +services: + iperf: + image: "networkstatic/iperf3:latest" + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:5201" + environment: + - TZ=${TIME_ZONE} + command: ${IPERF_COMMAND} + stdin_open: true + tty: true + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/iperf/logo.png b/apps/iperf/logo.png new file mode 100644 index 00000000..79c6561b Binary files /dev/null and b/apps/iperf/logo.png differ