diff --git a/apps/openresty-manager/1.5.0/data.yml b/apps/openresty-manager/1.5.0/data.yml new file mode 100644 index 000000000..ba53928f1 --- /dev/null +++ b/apps/openresty-manager/1.5.0/data.yml @@ -0,0 +1,49 @@ +additionalProperties: + formFields: + - default: "1panel-network" + edit: true + envKey: NETWORK_MODE + labelEn: Drive path + labelZh: 网络模式 + required: true + type: select + values: + - label: 主机网络模式 + value: "host" + - label: 桥接网络模式 + value: "bridge" + - label: 无网络模式 + value: "none" + - label: 1panel-network + value: "1panel-network" + - default: "/home/openresty-manager" + edit: true + envKey: OPENRESTY_MANAGER_ROOT_PATH + labelZh: 数据持久化路径 + labelEn: Data persistence path + required: true + type: text + - default: 34567 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number + - default: 80 + edit: true + envKey: PANEL_APP_PORT_NGINX_HTTP + labelZh: Nginx 端口 + labelEn: Nginx port + required: true + rule: paramPort + type: number + - default: 443 + edit: true + envKey: PANEL_APP_PORT_NGINX_HTTPS + labelZh: Nginx SSL 端口 + labelEn: Nginx SSL port + required: true + rule: paramPort + type: number diff --git a/apps/openresty-manager/1.5.0/docker-compose.yml b/apps/openresty-manager/1.5.0/docker-compose.yml new file mode 100644 index 000000000..bde5dde78 --- /dev/null +++ b/apps/openresty-manager/1.5.0/docker-compose.yml @@ -0,0 +1,28 @@ +networks: + 1panel-network: + external: true + +services: + openresty-manager: + image: uusec/openresty-manager:1.5.0 + container_name: ${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + network_mode: ${NETWORK_MODE} + ports: + - ${PANEL_APP_PORT_HTTP}:34567 + - ${PANEL_APP_PORT_NGINX_HTTP}:80 + - ${PANEL_APP_PORT_NGINX_HTTPS}:443 + env_file: + - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/resolv.conf:/etc/resolv.conf:ro + - /var/run/docker.sock:/var/run/docker.sock + - ${OPENRESTY_MANAGER_ROOT_PATH}/acme:/opt/om/acme + - ${OPENRESTY_MANAGER_ROOT_PATH}/data:/opt/om/data + - ${OPENRESTY_MANAGER_ROOT_PATH}/conf:/opt/om/nginx/conf + environment: + - TZ=Asia/Shanghai diff --git a/apps/openresty-manager/1.5.0/envs/default.env b/apps/openresty-manager/1.5.0/envs/default.env new file mode 100644 index 000000000..cd05f46e6 --- /dev/null +++ b/apps/openresty-manager/1.5.0/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/apps/openresty-manager/1.5.0/envs/global.env b/apps/openresty-manager/1.5.0/envs/global.env new file mode 100644 index 000000000..e10989fe4 --- /dev/null +++ b/apps/openresty-manager/1.5.0/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/apps/openresty-manager/1.5.0/scripts/init.sh b/apps/openresty-manager/1.5.0/scripts/init.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/apps/openresty-manager/1.5.0/scripts/init.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + sed -i '/^GLOBAL_ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/openresty-manager/1.5.0/scripts/uninstall.sh b/apps/openresty-manager/1.5.0/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/apps/openresty-manager/1.5.0/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/openresty-manager/1.5.0/scripts/upgrade.sh b/apps/openresty-manager/1.5.0/scripts/upgrade.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/apps/openresty-manager/1.5.0/scripts/upgrade.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + sed -i '/^GLOBAL_ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/openresty-manager/README.md b/apps/openresty-manager/README.md new file mode 100644 index 000000000..8f24a8d99 --- /dev/null +++ b/apps/openresty-manager/README.md @@ -0,0 +1,41 @@ +# OpenResty 管理器 + +强大的OpenResty和主机管理面板 + +![OpenResty 管理器](https://file.lifebus.top/imgs/openresty-manager_cover.png) + +![](https://img.shields.io/badge/%E6%96%B0%E7%96%86%E8%90%8C%E6%A3%AE%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%A4-%E6%8F%90%E4%BE%9B%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81-blue) + +## 简介 + +基于OpenResty并提供的强大web的管理界面,具有服务器状态监控、安全防护、免费SSL证书、主机管理、应用商店等功能。 + +## 特性 + +### 反向代理 + +通过用户友好的界面轻松配置和管理您网站的反向代理设置。 + +### 主机管理 + +使用基于web的终端和文件管理器简单地管理您的服务器。 + +### 免费证书 + +通过Let's Encrypt集成自动管理SSL证书以实现安全连接。 + +### 访问控制 + +使用强大的访问控制功能保护您的应用程序,以保护您的资源。 + +### CC 防护 + +使用内置的HTTP洪水防护机制保护您的网站免受DDoS攻击。 + +### 应用商店 + +支持基于docker compose的应用商店功能,大大降低建站和容器管理的难度。 + +--- + +![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) diff --git a/apps/openresty-manager/data.yml b/apps/openresty-manager/data.yml new file mode 100644 index 000000000..501546967 --- /dev/null +++ b/apps/openresty-manager/data.yml @@ -0,0 +1,14 @@ +additionalProperties: + key: openresty-manager + name: OpenResty 管理器 + tags: + - WebSite + - Local + shortDescZh: 主机管理面板 + shortDescEn: Host management panel + type: website + crossVersionUpdate: true + limit: 0 + website: https://om.uusec.com/ + github: https://github.com/Safe3/openresty-manager/ + document: https://om.uusec.com/ diff --git a/apps/openresty-manager/logo.png b/apps/openresty-manager/logo.png new file mode 100644 index 000000000..10e94a4a5 Binary files /dev/null and b/apps/openresty-manager/logo.png differ