feat:重构mdserver-web

This commit is contained in:
okxlin 2024-06-30 22:55:05 +08:00
parent 624885a969
commit b480106075
8 changed files with 167 additions and 87 deletions

View File

@ -1,17 +1,3 @@
# 本应用介绍
这是个民间制作的"mdserver-web"的"1Panel"商店版本应用;
- 容器内数据目录/www
- 默认账号 username
- 密码 password
> 原作者项目相关
>> - https://hub.docker.com/r/ddsderek/mw
>> - https://github.com/midoks/mdserver-web
# 原项目介绍
<p align="center"> <p align="center">
<img alt="logo" src="https://cdn.jsdelivr.net/gh/midoks/mdserver-web@latest/route/static/logo.png" height="140" /> <img alt="logo" src="https://cdn.jsdelivr.net/gh/midoks/mdserver-web@latest/route/static/logo.png" height="140" />
<h3 align="center">mdserver-web</h3> <h3 align="center">mdserver-web</h3>
@ -21,6 +7,14 @@
### 简介 ### 简介
简单的Linux面板,感谢BT.CN写出如此好的web管理软件。我一看到就知道这是我一直想要的页面化管理方式。
复制了后台管理界面,按照自己想要的方式写了一版。
> 使用说明:
>> - 注意查看容器日志获取相关信息,如安全入口等。
>> - 持久化使用存储卷方式,存储卷名字如`mdserver-web-data`
![EulerOS](https://img.shields.io/badge/LINUX-EulerOS-blue?style=for-the-badge&logo=EulerOS)
![Debian](https://img.shields.io/badge/LINUX-Debian-blue?style=for-the-badge&logo=Debian) ![Debian](https://img.shields.io/badge/LINUX-Debian-blue?style=for-the-badge&logo=Debian)
![Ubuntu](https://img.shields.io/badge/LINUX-Ubuntu-blue?style=for-the-badge&logo=Ubuntu) ![Ubuntu](https://img.shields.io/badge/LINUX-Ubuntu-blue?style=for-the-badge&logo=Ubuntu)
![Fedora](https://img.shields.io/badge/LINUX-Fedora-blue?style=for-the-badge&logo=Fedora) ![Fedora](https://img.shields.io/badge/LINUX-Fedora-blue?style=for-the-badge&logo=Fedora)
@ -28,25 +22,4 @@
[![Wiki](https://img.shields.io/badge/MW-Wiki-red?style=for-the-badge&logo=wiki)](https://github.com/midoks/mdserver-web/wiki) [![Wiki](https://img.shields.io/badge/MW-Wiki-red?style=for-the-badge&logo=wiki)](https://github.com/midoks/mdserver-web/wiki)
[![](https://data.jsdelivr.com/v1/package/gh/midoks/mdserver-web/badge?style=for-the-badge)](https://www.jsdelivr.com/package/gh/midoks/mdserver-web) [![jsdelivr](https://data.jsdelivr.com/v1/package/gh/midoks/mdserver-web/badge)](https://www.jsdelivr.com/package/gh/midoks/mdserver-web)
* SSH终端工具
* 面板收藏功能
* 网站子目录绑定
* 网站备份功能
* 插件方式管理
### 主要插件介绍
* OpenResty - 轻量级,占有内存少,并发能力强。
* PHP[53-82] - PHP是世界上最好的编程语言。
* MySQL - 一种关系数据库管理系统。
* MariaDB - 是MySQL的一个重要分支。
* MySQL[APT/YUM] - 一种关系数据库管理系统。
* MongoDB - 一种非关系NOSQL数据库管理系统。
* phpMyAdmin - 著名Web端MySQL管理工具。
* Memcached - 一个高性能的分布式内存对象缓存系统。
* Redis - 一个高性能的KV数据库。
* PureFtpd - 一款专注于程序健壮和软件安全的免费FTP服务器软件。
* Gogs - 一款极易搭建的自助Git服务。
* Rsyncd - 通用同步服务。

View File

@ -0,0 +1,8 @@
CLOSE_ADMIN_PATH="true"
CONTAINER_NAME="mdserver-web"
HTTPS_PORT=10443
HTTP_PORT=10080
PANEL_APP_PORT_HTTP=7200
PASSWORD="password"
PHPMYAYMIN_PORT=10888
USERNAME="ddsrem"

View File

@ -0,0 +1,64 @@
additionalProperties:
formFields:
- default: 7200
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Web Panel Port
labelZh: 面板端口
required: true
rule: paramPort
type: number
- default: 10080
edit: true
envKey: HTTP_PORT
labelEn: HTTP Port
labelZh: HTTP 端口
required: true
rule: paramPort
type: number
- default: 10443
edit: true
envKey: HTTPS_PORT
labelEn: HTTPS Port
labelZh: HTTPS 端口
required: true
rule: paramPort
type: number
- default: 10888
edit: true
envKey: PHPMYAYMIN_PORT
labelEn: phpMyAdmin Port
labelZh: phpMyAdmin 端口
required: true
rule: paramPort
type: number
- default: "true"
edit: true
envKey: CLOSE_ADMIN_PATH
labelEn: Close Admin Path
labelZh: 关闭管理路径
required: true
type: select
values:
- label: "true"
value: "true"
- label: "false"
value: "false"
- default: "ddsrem"
edit: true
envKey: USERNAME
labelEn: Username
labelZh: 用户名
random: true
required: true
type: text
- default: "password"
edit: true
envKey: PASSWORD
labelEn: Password
labelZh: 密码
random: true
required: true
rule: paramComplexity
type: password

View File

@ -0,0 +1,29 @@
services:
mdserver-web:
image: "ddsderek/mdserver-web:latest"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}"
- "${HTTP_PORT}:80"
- "${HTTPS_PORT}:443"
- "${PHPMYAYMIN_PORT}:888"
volumes:
- mdserver-web-data:/www
environment:
- CLOSE_ADMIN_PATH=${CLOSE_ADMIN_PATH}
- USERNAME=${USERNAME}
- PASSWORD=${PASSWORD}
- WEB_PORT=${PANEL_APP_PORT_HTTP}
labels:
createdBy: "Apps"
volumes:
mdserver-web-data:
name: mdserver-web-data
networks:
1panel-network:
external: true

View File

@ -1,8 +1,7 @@
name: mdserver-web name: mdserver-web
tags: tags:
- 工具 - 实用工具
title: 一款简单 Linux 面板服务 title: 一款简单 Linux 面板服务
type: 工具
description: 一款简单 Linux 面板服务 description: 一款简单 Linux 面板服务
additionalProperties: additionalProperties:
key: mdserver-web key: mdserver-web

View File

@ -0,0 +1,5 @@
CLOSE_ADMIN_PATH="true"
CONTAINER_NAME="mdserver-web"
PANEL_APP_PORT_HTTP=7200
PASSWORD="password"
USERNAME="ddsrem"

View File

@ -1,34 +1,40 @@
additionalProperties: additionalProperties:
formFields: formFields:
- default: 7200 - default: 7200
edit: true edit: true
envKey: Web_Panel_Port envKey: PANEL_APP_PORT_HTTP
labelEn: Web Panel Port labelEn: Web Panel Port
labelZh: 面板端口 labelZh: 面板端口
required: true required: true
rule: paramPort rule: paramPort
type: number type: number
- default: 10080 - default: "true"
edit: true edit: true
envKey: HTTP_PORT envKey: CLOSE_ADMIN_PATH
labelEn: HTTP Port labelEn: Close Admin Path
labelZh: HTTP端口 labelZh: 关闭管理路径
required: true required: true
rule: paramPort type: select
type: number values:
- default: 10443 - label: "true"
edit: true value: "true"
envKey: HTTPS_PORT - label: "false"
labelEn: HTTPS Port value: "false"
labelZh: HTTPS端口 - default: "ddsrem"
required: true edit: true
rule: paramPort envKey: USERNAME
type: number labelEn: Username
- default: 10888 labelZh: 用户名
edit: true random: true
envKey: phpMyAdmin_PORT required: true
labelEn: phpMyAdmin Port type: text
labelZh: phpMyAdmin端口 - default: "password"
required: true edit: true
rule: paramPort envKey: PASSWORD
type: number labelEn: Password
labelZh: 密码
random: true
required: true
rule: paramComplexity
type: password

View File

@ -1,23 +1,19 @@
services: services:
mw-server: mdserver-web:
image: "ddsderek/mdserver-web:latest"
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}
restart: always restart: always
networks: network_mode: "host"
- 1panel-network
privileged: true
ports:
- "${Web_Panel_Port}:7200"
- "${HTTP_PORT}:80"
- "${HTTPS_PORT}:443"
- "${phpMyAdmin_PORT}:888"
volumes: volumes:
- mw-server:/www - mdserver-web-data:/www
image: "ddsderek/mdserver-web:latest" environment:
- CLOSE_ADMIN_PATH=${CLOSE_ADMIN_PATH}
- USERNAME=${USERNAME}
- PASSWORD=${PASSWORD}
- WEB_PORT=${PANEL_APP_PORT_HTTP}
labels: labels:
createdBy: "Apps" createdBy: "Apps"
volumes:
mw-server:
networks:
1panel-network:
external: true
volumes:
mdserver-web-data:
name: mdserver-web-data