feat:添加h5ai到测试

This commit is contained in:
okxlin 2023-07-12 12:23:17 +08:00
parent 2d10df8056
commit 0b6679e2a9
13 changed files with 255 additions and 12 deletions

View File

@ -0,0 +1,7 @@
CONTAINER_NAME="h5ai"
PANEL_APP_PORT_HTTP="40048"
DATA_PATH="./data/share"
CONFIG_PATH="./data/config"
AUTH_ENABLE="true"
USER="h5ai"
PASSWORD="PASSWORD"

47
apps/h5ai/1.25.0/data.yml Normal file
View File

@ -0,0 +1,47 @@
additionalProperties:
formFields:
- default: 40048
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: ./data/share
edit: true
envKey: DATA_PATH
labelEn: The path to the shared data folder
labelZh: 分享的数据文件夹路径
required: true
type: text
- default: ./data/config
edit: true
envKey: CONFIG_PATH
labelEn: Path to the configuration file
labelZh: 配置文件所在路径
required: true
type: text
- default: "true"
edit: true
envKey: AUTH_ENABLE
labelEn: "Authentication (On: true, Off: false)"
labelZh: 身份验证(开启:true关闭:false)
required: true
type: text
- default: h5ai
envKey: USER
labelEn: User
labelZh: 用户名
random: true
required: false
rule: paramCommon
type: text
- default: h5ai
envKey: PASSWORD
labelEn: Password
labelZh: 用户密码
random: true
required: false
rule: paramComplexity
type: password

View File

@ -0,0 +1,27 @@
version: '3'
services:
h5ai:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:80"
volumes:
- "${DATA_PATH}:/h5ai"
- "${CONFIG_PATH}::/config"
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Shanghai
- HTPASSWD=${AUTH_ENABLE}
- HTPASSWD_USER=${USER}
- HTPASSWD_PW=${PASSWORD}
tty: true
image: bin20088/h5ai:1.25.0
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

73
apps/h5ai/README.md Normal file
View File

@ -0,0 +1,73 @@
# h5ai
[![license][license-img]][github] [![web][web-img]][web] [![github][github-img]][github]
A modern HTTP web server index for Apache httpd, lighttpd, and nginx.
## Important
* Do **not** install any files from the `src` folder, they need to be
preprocessed to work correctly!
* Find a preprocessed package and detailed install instructions on the
[project page][web].
* For bug reports and feature requests please use [issues][github-issues].
## Build
There are installation ready packages for the latest [releases][release] and
[dev builds][develop]. But to build **h5ai** yourself either `git clone` or
download the repository. From within the root folder run the following
commands to find a fresh zipball in folder `build` (tested on linux only,
requires [`node 10.0+`][node] to be installed, might work on other
configurations).
~~~sh
> npm install
> npm run build
~~~
## License
The MIT License (MIT)
Copyright (c) 2020 Lars Jung (https://larsjung.de)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
## References
**h5ai** profits from other projects, all of them licensed under the MIT license
too. Exceptions are some [Material Design icons][material-design-icons] (CC BY 4.0).
[web]: https://larsjung.de/h5ai/
[github]: https://github.com/lrsjng/h5ai
[github-issues]: https://github.com/lrsjng/h5ai/issues
[release]: https://release.larsjung.de/h5ai/
[develop]: https://release.larsjung.de/h5ai/develop/
[node]: https://nodejs.org
[material-design-icons]: https://github.com/google/material-design-icons
[license-img]: https://img.shields.io/badge/license-MIT-a0a060.svg?style=flat-square
[web-img]: https://img.shields.io/badge/web-larsjung.de/h5ai-a0a060.svg?style=flat-square
[github-img]: https://img.shields.io/badge/github-lrsjng/h5ai-a0a060.svg?style=flat-square

20
apps/h5ai/data.yml.bak Normal file
View File

@ -0,0 +1,20 @@
name: h5ai
tags:
- 工具
title: 用于Apache httpdlighttpd和nginx的HTTP Web服务器索引
type: 工具
description: 用于Apache httpdlighttpd和nginx的HTTP Web服务器索引
additionalProperties:
key: h5ai
name: h5ai
tags:
- Tool
shortDescZh: 用于Apache httpdlighttpd和nginx的HTTP Web服务器索引
shortDescEn: HTTP web server index for Apache httpd, lighttpd and nginx
type: tool
crossVersionUpdate: true
limit: 0
recommend: 0
website: https://hub.docker.com/r/bin20088/h5ai
github: https://github.com/lrsjng/h5ai
document: https://github.com/lrsjng/h5ai

View File

@ -0,0 +1,7 @@
CONTAINER_NAME="h5ai"
PANEL_APP_PORT_HTTP="40048"
DATA_PATH="./data/share"
CONFIG_PATH="./data/config"
AUTH_ENABLE="true"
USER="h5ai"
PASSWORD="PASSWORD"

47
apps/h5ai/latest/data.yml Normal file
View File

@ -0,0 +1,47 @@
additionalProperties:
formFields:
- default: 40048
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: ./data/share
edit: true
envKey: DATA_PATH
labelEn: The path to the shared data folder
labelZh: 分享的数据文件夹路径
required: true
type: text
- default: ./data/config
edit: true
envKey: CONFIG_PATH
labelEn: Path to the configuration file
labelZh: 配置文件所在路径
required: true
type: text
- default: "true"
edit: true
envKey: AUTH_ENABLE
labelEn: "Authentication (On: true, Off: false)"
labelZh: 身份验证(开启:true关闭:false)
required: true
type: text
- default: h5ai
envKey: USER
labelEn: User
labelZh: 用户名
random: true
required: false
rule: paramCommon
type: text
- default: h5ai
envKey: PASSWORD
labelEn: Password
labelZh: 用户密码
random: true
required: false
rule: paramComplexity
type: password

View File

@ -0,0 +1,27 @@
version: '3'
services:
h5ai:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:80"
volumes:
- "${DATA_PATH}:/h5ai"
- "${CONFIG_PATH}::/config"
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Shanghai
- HTPASSWD=${AUTH_ENABLE}
- HTPASSWD_USER=${USER}
- HTPASSWD_PW=${PASSWORD}
tty: true
image: bin20088/h5ai:latest
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

BIN
apps/h5ai/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -15,10 +15,6 @@ additionalProperties:
key: mysql
type: param
value: "3306"
#- envKey: ZABBIX_DB_PORT
# key: postgresql
# type: param
# value: "5432"
required: true
type: apps
values:

View File

@ -13,7 +13,6 @@ services:
- MYSQL_DATABASE=${PANEL_DB_NAME}
- MYSQL_USER=${PANEL_DB_USER}
- MYSQL_PASSWORD=${PANEL_DB_USER_PASSWORD}
#- MYSQL_ROOT_PASSWORD=root_pwd
- ZBX_JAVAGATEWAY=zabbix-java-gateway
image: zabbix/zabbix-server-mysql:alpine-6.4.4
depends_on:
@ -41,7 +40,6 @@ services:
- MYSQL_DATABASE=${PANEL_DB_NAME}
- MYSQL_USER=${PANEL_DB_USER}
- MYSQL_PASSWORD=${PANEL_DB_USER_PASSWORD}
#- MYSQL_ROOT_PASSWORD=root_pwd
ports:
- ${PANEL_APP_PORT_HTTP}:8080
image: zabbix/zabbix-web-nginx-mysql:alpine-6.4.4

View File

@ -15,10 +15,6 @@ additionalProperties:
key: mysql
type: param
value: "3306"
#- envKey: ZABBIX_DB_PORT
# key: postgresql
# type: param
# value: "5432"
required: true
type: apps
values:

View File

@ -13,7 +13,6 @@ services:
- MYSQL_DATABASE=${PANEL_DB_NAME}
- MYSQL_USER=${PANEL_DB_USER}
- MYSQL_PASSWORD=${PANEL_DB_USER_PASSWORD}
#- MYSQL_ROOT_PASSWORD=root_pwd
- ZBX_JAVAGATEWAY=zabbix-java-gateway
image: zabbix/zabbix-server-mysql:alpine-latest
depends_on:
@ -41,7 +40,6 @@ services:
- MYSQL_DATABASE=${PANEL_DB_NAME}
- MYSQL_USER=${PANEL_DB_USER}
- MYSQL_PASSWORD=${PANEL_DB_USER_PASSWORD}
#- MYSQL_ROOT_PASSWORD=root_pwd
ports:
- ${PANEL_APP_PORT_HTTP}:8080
image: zabbix/zabbix-web-nginx-mysql:alpine-latest