├── class ├── os │ ├── README.md │ └── win32 │ │ └── README.md ├── fonts │ └── 2.ttf └── plugin │ └── README.md ├── data ├── control.conf ├── recycle_bin.pl ├── vip │ └── readme.md ├── json │ └── type.json ├── tpl │ └── nginx_panel.conf └── sql │ └── system.sql ├── docker ├── start.sh └── start.service ├── route ├── static │ ├── css │ │ └── index.html │ ├── img │ │ ├── index.html │ │ ├── ing.gif │ │ ├── icon3.png │ │ ├── icon4.png │ │ ├── ings.gif │ │ ├── account.png │ │ ├── ico-copy.png │ │ ├── ico-home.png │ │ ├── ico_line.png │ │ ├── loading.gif │ │ ├── morebtn.png │ │ ├── pureftpd.png │ │ ├── ref-icon.png │ │ ├── ser-icon.png │ │ ├── tip_suu.png │ │ ├── Detailsbg.png │ │ ├── ico-close.png │ │ ├── ico │ │ │ ├── ico-bt.png │ │ │ ├── ico-c.png │ │ │ ├── ico-cs.png │ │ │ ├── ico-js.png │ │ │ ├── ico-rm.png │ │ │ ├── ico-apk.png │ │ │ ├── ico-avi.png │ │ │ ├── ico-bmp.png │ │ │ ├── ico-cdr.png │ │ │ ├── ico-cpp.png │ │ │ ├── ico-doc.png │ │ │ ├── ico-docx.png │ │ │ ├── ico-flv.png │ │ │ ├── ico-gif.png │ │ │ ├── ico-htm.png │ │ │ ├── ico-html.png │ │ │ ├── ico-java.png │ │ │ ├── ico-jpeg.png │ │ │ ├── ico-jpg.png │ │ │ ├── ico-ltr.png │ │ │ ├── ico-mht.png │ │ │ ├── ico-mkv.png │ │ │ ├── ico-mov.png │ │ │ ├── ico-mp4.png │ │ │ ├── ico-mpeg.png │ │ │ ├── ico-mpg.png │ │ │ ├── ico-pdf.png │ │ │ ├── ico-php.png │ │ │ ├── ico-png.png │ │ │ ├── ico-pptx.png │ │ │ ├── ico-psd.png │ │ │ ├── ico-rmvb.png │ │ │ ├── ico-swf.png │ │ │ ├── ico-url.png │ │ │ ├── ico-webm.png │ │ │ ├── ico-webp.png │ │ │ ├── ico-wma.png │ │ │ ├── ico-wmv.png │ │ │ ├── ico-xls.png │ │ │ ├── ico-xlsx.png │ │ │ ├── ico-xml.png │ │ │ ├── ico-access.png │ │ │ ├── ico-rocket.gif │ │ │ ├── rocket_min.png │ │ │ ├── menu_icon_data.png │ │ │ ├── menu_icon_day.png │ │ │ ├── menu_icon_exit.png │ │ │ ├── menu_icon_ftp.png │ │ │ ├── menu_icon_home.png │ │ │ ├── menu_icon_log.png │ │ │ ├── menu_icon_set.png │ │ │ ├── menu_icon_soft.png │ │ │ ├── menu_icon_web.png │ │ │ ├── menu_icon_folder.png │ │ │ ├── menu_icon_control.png │ │ │ ├── menu_icon_firewall.png │ │ │ ├── menu_icon_data_active.gif │ │ │ ├── menu_icon_data_active.png │ │ │ ├── menu_icon_day_active.gif │ │ │ ├── menu_icon_day_active.png │ │ │ ├── menu_icon_exit_active.gif │ │ │ ├── menu_icon_exit_active.png │ │ │ ├── menu_icon_ftp_active.gif │ │ │ ├── menu_icon_ftp_active.png │ │ │ ├── menu_icon_home_active.gif │ │ │ ├── menu_icon_home_active.png │ │ │ ├── menu_icon_log_active.png │ │ │ ├── menu_icon_set_active.gif │ │ │ ├── menu_icon_set_active.png │ │ │ ├── menu_icon_soft_active.gif │ │ │ ├── menu_icon_soft_active.png │ │ │ ├── menu_icon_web_active.gif │ │ │ ├── menu_icon_web_active.png │ │ │ ├── menu_icon_control_active.gif │ │ │ ├── menu_icon_control_active.png │ │ │ ├── menu_icon_folder_active.gif │ │ │ ├── menu_icon_folder_active.png │ │ │ ├── menu_icon_firewall_active.gif │ │ │ └── menu_icon_firewall_active.png │ │ ├── icon-item.png │ │ ├── label-icon.png │ │ ├── ns-loading.gif │ │ ├── phpmyadmin.png │ │ ├── pure-ftpd.png │ │ ├── safety_ico.png │ │ ├── weixin_zz.jpg │ │ ├── DrawRecordord.png │ │ ├── ico-computer.png │ │ ├── ico-success.png │ │ ├── return-icon.png │ │ ├── success-pic.png │ │ └── soft_ico │ │ │ ├── ico-app.png │ │ │ ├── ico-beta.png │ │ │ ├── ico-cmd.png │ │ │ ├── ico-log.png │ │ │ ├── ico-logs.png │ │ │ ├── ico-node.png │ │ │ ├── ico-pm2.png │ │ │ ├── ico-psync.png │ │ │ ├── ico-rsync.png │ │ │ ├── ico-score.png │ │ │ ├── ico-test.png │ │ │ ├── ico-txcos.png │ │ │ ├── ico-apache.png │ │ │ ├── ico-mongodb.png │ │ │ ├── ico-phpsafe.png │ │ │ ├── ico-tomcat.png │ │ │ ├── ico-webhook.png │ │ │ ├── ico-yunsuo.png │ │ │ ├── ico-cmd-hover.png │ │ │ ├── ico-deployment.png │ │ │ ├── ico-pure-ftpd.png │ │ │ ├── ico-pureftpd.png │ │ │ ├── ico-safelogin.png │ │ │ ├── ico-task_manager.png │ │ │ └── ico-load_leveling.png │ ├── language │ │ ├── index.html │ │ ├── list.json │ │ └── zh-cn.js │ ├── logo.png │ ├── mdw.jpg │ ├── favicon.ico │ ├── images │ │ ├── logo.png │ │ ├── move.png │ │ ├── right.png │ │ ├── weixin.png │ │ ├── ico-ts-cpu.png │ │ ├── ico-ts-mem.png │ │ ├── ico-ts-disk.png │ │ ├── ico-ts-score.gif │ │ ├── ico-ts-score.jpg │ │ ├── ico-ts-refresh.png │ │ ├── ico-ts-score1.png │ │ ├── ico-ts-score2.png │ │ ├── ico-ts-score3.png │ │ ├── ico-ts-cpu-active.png │ │ ├── ico-ts-mem-active.png │ │ └── ico-ts-disk-active.png │ ├── build │ │ └── addons │ │ │ ├── fit │ │ │ └── package.json │ │ │ ├── attach │ │ │ └── package.json │ │ │ ├── fullscreen │ │ │ ├── package.json │ │ │ └── fullscreen.css │ │ │ └── terminado │ │ │ └── package.json │ ├── codemirror │ │ └── addon │ │ │ ├── display │ │ │ ├── fullscreen.css │ │ │ ├── autorefresh.js │ │ │ └── fullscreen.js │ │ │ ├── search │ │ │ └── matchesonscrollbar.css │ │ │ ├── hint │ │ │ ├── show-hint.css │ │ │ └── anyword-hint.js │ │ │ ├── dialog │ │ │ └── dialog.css │ │ │ ├── edit │ │ │ ├── trailingspace.js │ │ │ └── continuelist.js │ │ │ └── scroll │ │ │ └── scrollpastend.js │ ├── layer │ │ └── skin │ │ │ └── default │ │ │ ├── close.png │ │ │ ├── icon.png │ │ │ ├── icon-ext.png │ │ │ ├── loading-0.gif │ │ │ ├── loading-1.gif │ │ │ ├── loading-2.gif │ │ │ └── close_hover.png │ ├── laydate │ │ └── theme │ │ │ └── default │ │ │ └── font │ │ │ ├── iconfont.eot │ │ │ ├── iconfont.ttf │ │ │ └── iconfont.woff │ └── bootstrap-3.3.5 │ │ └── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 └── templates │ ├── index.html │ └── default │ ├── plugin_menu.html │ ├── close.html │ └── path.html ├── plugins ├── mariadb │ ├── conf │ │ ├── classic.cnf │ │ └── gtid.cnf │ ├── ico.png │ ├── info.json │ └── init.d │ │ └── mariadb.service.tpl ├── mysql │ ├── conf │ │ ├── classic.cnf │ │ └── gtid.cnf │ ├── ico.png │ ├── init.d │ │ └── mysql.service.tpl │ ├── info.json │ └── lib │ │ └── rpcgen.sh ├── op_waf │ ├── waf │ │ ├── domains.json │ │ ├── site.json │ │ ├── area_limit.json │ │ ├── conf │ │ │ └── readme.md │ │ ├── rule │ │ │ ├── ipv6_black.json │ │ │ ├── ip_white.json │ │ │ ├── ip_black.json │ │ │ ├── url_white.json │ │ │ ├── user_agent.json │ │ │ ├── scan_black.json │ │ │ └── url.json │ │ ├── total.json │ │ └── lua │ │ │ └── init_preload.lua │ ├── ico.png │ ├── conf │ │ ├── luawaf.conf │ │ └── init.sql │ ├── shell │ │ └── cpu_usage.sh │ ├── t │ │ ├── bench │ │ │ ├── simple.lua │ │ │ └── bench.sh │ │ ├── ngx_demo.sh │ │ ├── test.sh │ │ └── readme.md │ └── info.json ├── mysql-apt │ ├── conf │ │ ├── classic.cnf │ │ └── gtid.cnf │ ├── ico.png │ └── info.json ├── mysql-yum │ ├── conf │ │ ├── classic.cnf │ │ └── gtid.cnf │ ├── ico.png │ └── info.json ├── php │ ├── versions │ │ ├── common │ │ │ └── lib.md │ │ └── lib.sh │ ├── ico.png │ ├── conf │ │ ├── phpinfo.conf │ │ ├── php-fpm.conf │ │ ├── phpfpm_status.conf │ │ ├── enable-php.conf │ │ ├── pathinfo.conf │ │ └── www.conf │ ├── init.d │ │ ├── php.service.52.tpl │ │ └── php.service.tpl │ └── info.json ├── dynamic-tracking │ ├── toolkit │ │ └── readme.md │ ├── ico.png │ ├── versions │ │ ├── centos.sh │ │ ├── ubuntu.sh │ │ └── macos.sh │ ├── static │ │ └── css │ │ │ └── ico.css │ ├── index.html │ └── info.json ├── tgbot │ ├── startup │ │ └── extend │ │ │ ├── readme.md │ │ │ └── init_cmd.py │ ├── ico.png │ ├── static │ │ └── image │ │ │ └── ad.png │ ├── init.d │ │ └── tgbot.service.tpl │ ├── info.json │ └── index.html ├── tgclient │ ├── startup │ │ └── extend │ │ │ └── readme.md │ ├── ico.png │ ├── init.d │ │ └── tgclient.service.tpl │ ├── info.json │ └── index.html ├── mosquitto │ ├── config │ │ └── mosquitto.conf │ ├── ico.png │ ├── init.d │ │ └── mosquitto.service.tpl │ ├── info.json │ └── index.html ├── gitea │ ├── hook │ │ ├── post-receive.tpl │ │ ├── self_hook.tpl │ │ └── commit.tpl.ssh │ ├── ico.png │ ├── info.json │ └── init.d │ │ └── gitea.service.tpl ├── gogs │ ├── hook │ │ ├── post-receive.tpl │ │ ├── self_hook.tpl │ │ └── commit.tpl.ssh │ ├── ico.png │ ├── init.d │ │ ├── gogs.service.tpl │ │ └── gogs.service.bak.tpl │ └── info.json ├── op_load_balance │ ├── conf │ │ ├── load_balance.conf │ │ └── upstream.tpl.conf │ ├── ico.png │ ├── info.json │ ├── lua │ │ └── health_check.lua.tpl │ └── index.html ├── lvs │ ├── ico.png │ ├── readme.md │ ├── info.json │ └── index.html ├── clean │ ├── ico.png │ ├── info.json │ └── index.html ├── imail │ ├── ico.png │ ├── init.d │ │ └── imail.service.tpl │ ├── info.json │ ├── install.sh │ └── index.html ├── nezha │ ├── ico.png │ ├── info.json │ └── init.d │ │ ├── nezha-agent.service.tpl │ │ └── nezha.service.tpl ├── redis │ ├── ico.png │ ├── init.d │ │ └── redis.service.tpl │ └── info.json ├── swap │ ├── ico.png │ ├── init.d │ │ └── swap.service.tpl │ ├── info.json │ └── index.html ├── docker │ ├── ico.png │ └── info.json ├── gdrive │ ├── ico.png │ ├── credentials_bak.json │ ├── credentials.json │ └── info.json ├── haproxy │ ├── ico.png │ ├── info.json │ ├── init.d │ │ └── haproxy.service.tpl │ ├── index.html │ ├── tpl │ │ └── default.tpl │ └── conf │ │ └── haproxy.conf ├── mongodb │ ├── ico.png │ ├── config │ │ └── mongodb.conf │ ├── info.json │ └── index.html ├── php-apt │ ├── ico.png │ ├── conf │ │ ├── phpinfo.conf │ │ ├── enable-php.conf │ │ ├── pathinfo.conf │ │ └── www.conf │ ├── info.json │ └── versions │ │ ├── common │ │ └── opcache.sh │ │ └── lib.sh ├── php-yum │ ├── ico.png │ ├── conf │ │ ├── phpinfo.conf │ │ ├── enable-php.conf │ │ ├── pathinfo.conf │ │ └── www.conf │ ├── info.json │ └── versions │ │ └── lib.sh ├── pureftp │ ├── ico.png │ ├── conf │ │ └── ftps.sql │ ├── info.json │ ├── init.d │ │ └── pureftp.service.tpl │ └── index.html ├── rsyncd │ ├── ico.png │ ├── conf │ │ ├── rsyncd.conf │ │ ├── lsyncd.conf │ │ └── config.json │ ├── init.d │ │ ├── lsyncd.service.tpl │ │ └── rsyncd.service.tpl │ └── info.json ├── sphinx │ ├── ico.png │ ├── init.d │ │ └── sphinx.service.tpl │ ├── info.json │ ├── conf │ │ └── sphinx.conf │ └── index.html ├── sys-opt │ ├── ico.png │ ├── js │ │ └── sys-opt.js │ ├── info.json │ ├── install.sh │ └── index.html ├── varnish │ ├── ico.png │ ├── tpl │ │ ├── default.vcl │ │ └── default_note.vcl │ ├── info.json │ └── index.html ├── webhook │ ├── ico.png │ ├── info.json │ ├── install.sh │ └── index.html ├── webssh │ ├── ico.png │ ├── img │ │ └── ico-cmd.png │ ├── index.html │ ├── info.json │ └── install.sh ├── webstats │ ├── ico.png │ ├── conf │ │ └── webstats.conf │ ├── t │ │ ├── test.sh │ │ └── bench │ │ │ ├── simple.lua │ │ │ ├── bench.sh │ │ │ ├── test_today.lua │ │ │ └── test_ngx_find.lua │ └── info.json ├── xhprof │ ├── ico.png │ ├── lib │ │ └── xhprof_html │ │ │ └── jquery │ │ │ ├── indicator.gif │ │ │ └── jquery.tooltip.css │ ├── info.json │ ├── conf │ │ └── xhprof.conf │ └── index.html ├── backup_ftp │ ├── ico.png │ ├── info.json │ └── install.sh ├── keepalived │ ├── ico.png │ ├── init.d │ │ └── keepalived.service.tpl │ ├── scripts │ │ ├── chk.sh │ │ └── chk_mysql.sh │ ├── info.json │ ├── config │ │ └── keepalived.conf │ └── tpl │ │ ├── keepalived.mysql.master.conf │ │ ├── keepalived.mysql.backup.conf │ │ └── keepalived.lvs.nat.master.conf ├── memcached │ ├── ico.png │ ├── info.json │ ├── init.d │ │ └── memcached.service.tpl │ └── index.html ├── msonedrive │ ├── ico.png │ ├── info.json │ ├── credentials.json │ └── install.sh ├── openresty │ ├── ico.png │ ├── conf │ │ ├── vhost │ │ │ ├── 0.websocket.conf │ │ │ └── 0.nginx_status.conf │ │ └── lua.conf │ ├── init.d │ │ └── openresty.service.tpl │ ├── info.json │ └── index.html ├── php-guard │ ├── ico.png │ ├── index.html │ ├── info.json │ └── install.sh ├── phpmyadmin │ ├── ico.png │ ├── info.json │ ├── conf │ │ ├── config.inc.php │ │ └── phpmyadmin.conf │ └── index.html ├── postgresql │ ├── ico.png │ ├── init.d │ │ └── postgresql.service.tpl │ ├── info.json │ └── conf │ │ └── pg_hba.conf ├── supervisor │ ├── ico.png │ ├── init.d │ │ └── supervisor.service │ └── info.json ├── migration_api │ ├── ico.png │ ├── info.json │ └── install.sh ├── system_safe │ ├── ico.png │ ├── info.json │ ├── init.d │ │ └── system_safe.service.tpl │ └── index.html └── tamper_proof_py │ ├── ico.png │ ├── conf │ └── config.json │ ├── info.json │ └── init.d │ └── tamper_proof_py.service.tpl ├── version ├── r3.7.txt ├── r3.6.txt └── info.json ├── .github ├── pull_request_template.md ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── ISSUE_TEMPLATE_2.md │ ├── config.yaml │ ├── ISSUE_TEMPLATE_1.md │ ├── bug_report.yml │ ├── documentation.yml │ └── feature_request.yml └── workflows │ └── sync2gitee.yml ├── ssl └── README.md ├── rewrite └── nginx │ ├── laravel5.conf │ ├── drupal.conf │ ├── thinkphp.conf │ ├── mvc.conf │ ├── emlog.conf │ ├── shopex.conf │ ├── phpwind.conf │ ├── fastdfs.conf │ ├── proxy.conf │ ├── proxydg.conf │ ├── zblog.conf │ ├── typecho.conf │ ├── header_cors.conf │ ├── gunicorn.conf │ ├── wordpress.conf │ ├── v2ray.conf │ ├── phpcms.conf │ ├── nezha.conf │ ├── seacms.conf │ ├── EmpireCMS.conf │ ├── sub.conf.tpl │ ├── whmcs.conf │ └── dedecms.conf ├── scripts ├── install │ └── unknow.sh ├── update │ ├── unknow.sh │ └── macos.sh ├── init.d │ ├── service.sh │ ├── mw-task.service.tpl │ └── mw.service.tpl ├── pick.sh └── plugin_compress.sh ├── clear.sh └── requirements.txt /class/os/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/control.conf: -------------------------------------------------------------------------------- 1 | 30 -------------------------------------------------------------------------------- /data/recycle_bin.pl: -------------------------------------------------------------------------------- 1 | True -------------------------------------------------------------------------------- /class/os/win32/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/vip/readme.md: -------------------------------------------------------------------------------- 1 | 存放VIP关键数据 -------------------------------------------------------------------------------- /docker/start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -------------------------------------------------------------------------------- /route/static/css/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /route/static/img/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/mariadb/conf/classic.cnf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/mysql/conf/classic.cnf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/op_waf/waf/domains.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /plugins/op_waf/waf/site.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /route/static/language/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /route/templates/index.html: -------------------------------------------------------------------------------- 1 | index -------------------------------------------------------------------------------- /plugins/mysql-apt/conf/classic.cnf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/mysql-yum/conf/classic.cnf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/op_waf/waf/area_limit.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /plugins/php/versions/common/lib.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/dynamic-tracking/toolkit/readme.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/op_waf/waf/conf/readme.md: -------------------------------------------------------------------------------- 1 | 自动生成配置文件 -------------------------------------------------------------------------------- /plugins/op_waf/waf/rule/ipv6_black.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /version/r3.7.txt: -------------------------------------------------------------------------------- 1 | urllib3==1.21.1 2 | gevent==22.10.2 -------------------------------------------------------------------------------- /plugins/tgbot/startup/extend/readme.md: -------------------------------------------------------------------------------- 1 | push_*.py 识别为推送插件 2 | -------------------------------------------------------------------------------- /plugins/tgclient/startup/extend/readme.md: -------------------------------------------------------------------------------- 1 | push_*.py 识别为推送插件 2 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | ### 合并描述 2 | 3 | - 我添加了测试用例来覆盖新代码。 4 | -------------------------------------------------------------------------------- /plugins/op_waf/waf/rule/ip_white.json: -------------------------------------------------------------------------------- 1 | [[[127,0,0,1], [127, 0, 0, 255]]] -------------------------------------------------------------------------------- /plugins/op_waf/waf/rule/ip_black.json: -------------------------------------------------------------------------------- 1 | [[[94, 130, 9, 116], [94, 130, 9, 116]]] -------------------------------------------------------------------------------- /ssl/README.md: -------------------------------------------------------------------------------- 1 | # 自动生成 2 | 3 | certificate.pem - 证书信息 4 | privateKey.pem - 私钥 -------------------------------------------------------------------------------- /plugins/mosquitto/config/mosquitto.conf: -------------------------------------------------------------------------------- 1 | 2 | allow_anonymous true 3 | listener 1883 -------------------------------------------------------------------------------- /plugins/op_waf/waf/rule/url_white.json: -------------------------------------------------------------------------------- 1 | [[1,"^/(phpmyadmin)","MySQL[phpMyAdmin]", 0]] -------------------------------------------------------------------------------- /plugins/gitea/hook/post-receive.tpl: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | sh -x {$PATH}/commit 2>{$PATH}/sh.log -------------------------------------------------------------------------------- /plugins/gogs/hook/post-receive.tpl: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | sh -x {$PATH}/commit 2>{$PATH}/sh.log -------------------------------------------------------------------------------- /plugins/op_load_balance/conf/load_balance.conf: -------------------------------------------------------------------------------- 1 | ## 指定共享内存 2 | lua_shared_dict healthcheck 10m; -------------------------------------------------------------------------------- /class/fonts/2.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/class/fonts/2.ttf -------------------------------------------------------------------------------- /plugins/lvs/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/lvs/ico.png -------------------------------------------------------------------------------- /plugins/php/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/php/ico.png -------------------------------------------------------------------------------- /plugins/clean/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/clean/ico.png -------------------------------------------------------------------------------- /plugins/gitea/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/gitea/ico.png -------------------------------------------------------------------------------- /plugins/gogs/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/gogs/ico.png -------------------------------------------------------------------------------- /plugins/imail/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/imail/ico.png -------------------------------------------------------------------------------- /plugins/mysql/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/mysql/ico.png -------------------------------------------------------------------------------- /plugins/nezha/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/nezha/ico.png -------------------------------------------------------------------------------- /plugins/redis/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/redis/ico.png -------------------------------------------------------------------------------- /plugins/swap/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/swap/ico.png -------------------------------------------------------------------------------- /plugins/tgbot/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/tgbot/ico.png -------------------------------------------------------------------------------- /route/static/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/logo.png -------------------------------------------------------------------------------- /route/static/mdw.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/mdw.jpg -------------------------------------------------------------------------------- /plugins/docker/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/docker/ico.png -------------------------------------------------------------------------------- /plugins/gdrive/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/gdrive/ico.png -------------------------------------------------------------------------------- /plugins/haproxy/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/haproxy/ico.png -------------------------------------------------------------------------------- /plugins/mariadb/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/mariadb/ico.png -------------------------------------------------------------------------------- /plugins/mongodb/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/mongodb/ico.png -------------------------------------------------------------------------------- /plugins/op_waf/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/op_waf/ico.png -------------------------------------------------------------------------------- /plugins/php-apt/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/php-apt/ico.png -------------------------------------------------------------------------------- /plugins/php-yum/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/php-yum/ico.png -------------------------------------------------------------------------------- /plugins/pureftp/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/pureftp/ico.png -------------------------------------------------------------------------------- /plugins/rsyncd/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/rsyncd/ico.png -------------------------------------------------------------------------------- /plugins/sphinx/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/sphinx/ico.png -------------------------------------------------------------------------------- /plugins/sys-opt/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/sys-opt/ico.png -------------------------------------------------------------------------------- /plugins/tgclient/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/tgclient/ico.png -------------------------------------------------------------------------------- /plugins/varnish/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/varnish/ico.png -------------------------------------------------------------------------------- /plugins/webhook/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/webhook/ico.png -------------------------------------------------------------------------------- /plugins/webssh/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/webssh/ico.png -------------------------------------------------------------------------------- /plugins/webstats/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/webstats/ico.png -------------------------------------------------------------------------------- /plugins/xhprof/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/xhprof/ico.png -------------------------------------------------------------------------------- /route/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/favicon.ico -------------------------------------------------------------------------------- /route/static/img/ing.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ing.gif -------------------------------------------------------------------------------- /class/plugin/README.md: -------------------------------------------------------------------------------- 1 | 2 | - fcgi-client.py 3 | ``` 4 | https://pypi.org/project/flup6/1.1.1/#files 5 | ``` 6 | -------------------------------------------------------------------------------- /plugins/backup_ftp/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/backup_ftp/ico.png -------------------------------------------------------------------------------- /plugins/keepalived/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/keepalived/ico.png -------------------------------------------------------------------------------- /plugins/memcached/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/memcached/ico.png -------------------------------------------------------------------------------- /plugins/mosquitto/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/mosquitto/ico.png -------------------------------------------------------------------------------- /plugins/msonedrive/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/msonedrive/ico.png -------------------------------------------------------------------------------- /plugins/mysql-apt/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/mysql-apt/ico.png -------------------------------------------------------------------------------- /plugins/mysql-yum/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/mysql-yum/ico.png -------------------------------------------------------------------------------- /plugins/openresty/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/openresty/ico.png -------------------------------------------------------------------------------- /plugins/php-guard/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/php-guard/ico.png -------------------------------------------------------------------------------- /plugins/phpmyadmin/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/phpmyadmin/ico.png -------------------------------------------------------------------------------- /plugins/postgresql/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/postgresql/ico.png -------------------------------------------------------------------------------- /plugins/supervisor/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/supervisor/ico.png -------------------------------------------------------------------------------- /rewrite/nginx/laravel5.conf: -------------------------------------------------------------------------------- 1 | location / { 2 | try_files $uri $uri/ /index.php$is_args$query_string; 3 | } -------------------------------------------------------------------------------- /route/static/img/icon3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/icon3.png -------------------------------------------------------------------------------- /route/static/img/icon4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/icon4.png -------------------------------------------------------------------------------- /route/static/img/ings.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ings.gif -------------------------------------------------------------------------------- /plugins/migration_api/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/migration_api/ico.png -------------------------------------------------------------------------------- /plugins/system_safe/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/system_safe/ico.png -------------------------------------------------------------------------------- /route/static/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/images/logo.png -------------------------------------------------------------------------------- /route/static/images/move.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/images/move.png -------------------------------------------------------------------------------- /route/static/images/right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/images/right.png -------------------------------------------------------------------------------- /route/static/img/account.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/account.png -------------------------------------------------------------------------------- /route/static/img/ico-copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico-copy.png -------------------------------------------------------------------------------- /route/static/img/ico-home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico-home.png -------------------------------------------------------------------------------- /route/static/img/ico_line.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico_line.png -------------------------------------------------------------------------------- /route/static/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/loading.gif -------------------------------------------------------------------------------- /route/static/img/morebtn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/morebtn.png -------------------------------------------------------------------------------- /route/static/img/pureftpd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/pureftpd.png -------------------------------------------------------------------------------- /route/static/img/ref-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ref-icon.png -------------------------------------------------------------------------------- /route/static/img/ser-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ser-icon.png -------------------------------------------------------------------------------- /route/static/img/tip_suu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/tip_suu.png -------------------------------------------------------------------------------- /version/r3.6.txt: -------------------------------------------------------------------------------- 1 | cryptography==36.0.1 2 | flask==2.0.3 3 | pyOpenSSL==22.0.0 4 | requests==2.27.1 5 | gevent==22.10.2 -------------------------------------------------------------------------------- /plugins/op_load_balance/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/op_load_balance/ico.png -------------------------------------------------------------------------------- /plugins/tamper_proof_py/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/tamper_proof_py/ico.png -------------------------------------------------------------------------------- /plugins/webssh/img/ico-cmd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/webssh/img/ico-cmd.png -------------------------------------------------------------------------------- /route/static/images/weixin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/images/weixin.png -------------------------------------------------------------------------------- /route/static/img/Detailsbg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/Detailsbg.png -------------------------------------------------------------------------------- /route/static/img/ico-close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico-close.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-bt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-bt.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-c.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-cs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-cs.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-js.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-js.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-rm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-rm.png -------------------------------------------------------------------------------- /route/static/img/icon-item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/icon-item.png -------------------------------------------------------------------------------- /route/static/img/label-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/label-icon.png -------------------------------------------------------------------------------- /route/static/img/ns-loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ns-loading.gif -------------------------------------------------------------------------------- /route/static/img/phpmyadmin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/phpmyadmin.png -------------------------------------------------------------------------------- /route/static/img/pure-ftpd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/pure-ftpd.png -------------------------------------------------------------------------------- /route/static/img/safety_ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/safety_ico.png -------------------------------------------------------------------------------- /route/static/img/weixin_zz.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/weixin_zz.jpg -------------------------------------------------------------------------------- /plugins/dynamic-tracking/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/dynamic-tracking/ico.png -------------------------------------------------------------------------------- /plugins/mariadb/conf/gtid.cnf: -------------------------------------------------------------------------------- 1 | [mysqld] 2 | # SHOW GLOBAL VARIABLES LIKE '%gtid%' 3 | gtid_mode=ON 4 | enforce_gtid_consistency=ON -------------------------------------------------------------------------------- /plugins/mysql/conf/gtid.cnf: -------------------------------------------------------------------------------- 1 | [mysqld] 2 | # SHOW GLOBAL VARIABLES LIKE '%gtid%' 3 | gtid_mode=ON 4 | enforce_gtid_consistency=ON -------------------------------------------------------------------------------- /plugins/tgbot/static/image/ad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/tgbot/static/image/ad.png -------------------------------------------------------------------------------- /route/static/images/ico-ts-cpu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/images/ico-ts-cpu.png -------------------------------------------------------------------------------- /route/static/images/ico-ts-mem.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/images/ico-ts-mem.png -------------------------------------------------------------------------------- /route/static/img/DrawRecordord.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/DrawRecordord.png -------------------------------------------------------------------------------- /route/static/img/ico-computer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico-computer.png -------------------------------------------------------------------------------- /route/static/img/ico-success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico-success.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-apk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-apk.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-avi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-avi.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-bmp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-bmp.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-cdr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-cdr.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-cpp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-cpp.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-doc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-doc.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-docx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-docx.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-flv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-flv.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-gif.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-gif.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-htm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-htm.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-html.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-html.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-java.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-java.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-jpeg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-jpeg.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-jpg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-jpg.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-ltr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-ltr.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-mht.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-mht.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-mkv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-mkv.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-mov.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-mov.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-mp4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-mp4.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-mpeg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-mpeg.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-mpg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-mpg.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-pdf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-pdf.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-php.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-php.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-png.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-pptx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-pptx.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-psd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-psd.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-rmvb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-rmvb.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-swf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-swf.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-url.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-url.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-webm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-webm.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-webp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-webp.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-wma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-wma.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-wmv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-wmv.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-xls.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-xls.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-xlsx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-xlsx.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-xml.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-xml.png -------------------------------------------------------------------------------- /route/static/img/return-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/return-icon.png -------------------------------------------------------------------------------- /route/static/img/success-pic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/success-pic.png -------------------------------------------------------------------------------- /plugins/mysql-apt/conf/gtid.cnf: -------------------------------------------------------------------------------- 1 | [mysqld] 2 | # SHOW GLOBAL VARIABLES LIKE '%gtid%' 3 | gtid_mode=ON 4 | enforce_gtid_consistency=ON -------------------------------------------------------------------------------- /plugins/mysql-yum/conf/gtid.cnf: -------------------------------------------------------------------------------- 1 | [mysqld] 2 | # SHOW GLOBAL VARIABLES LIKE '%gtid%' 3 | gtid_mode=ON 4 | enforce_gtid_consistency=ON -------------------------------------------------------------------------------- /plugins/op_load_balance/conf/upstream.tpl.conf: -------------------------------------------------------------------------------- 1 | upstream {$UPSTREAM_NAME} 2 | { 3 | {$NODE_ALGO} 4 | {$NODE_SERVER_LIST} 5 | } -------------------------------------------------------------------------------- /rewrite/nginx/drupal.conf: -------------------------------------------------------------------------------- 1 | location / { 2 | if (!-e $request_filename) { 3 | rewrite ^/(.*)$ /index.php?q=$1 last; 4 | } 5 | } -------------------------------------------------------------------------------- /route/static/build/addons/fit/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "xterm.fit", 3 | "main": "fit.js", 4 | "private": true 5 | } 6 | -------------------------------------------------------------------------------- /route/static/images/ico-ts-disk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/images/ico-ts-disk.png -------------------------------------------------------------------------------- /route/static/images/ico-ts-score.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/images/ico-ts-score.gif -------------------------------------------------------------------------------- /route/static/images/ico-ts-score.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/images/ico-ts-score.jpg -------------------------------------------------------------------------------- /route/static/img/ico/ico-access.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-access.png -------------------------------------------------------------------------------- /route/static/img/ico/ico-rocket.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/ico-rocket.gif -------------------------------------------------------------------------------- /route/static/img/ico/rocket_min.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/rocket_min.png -------------------------------------------------------------------------------- /plugins/op_waf/conf/luawaf.conf: -------------------------------------------------------------------------------- 1 | lua_shared_dict waf_limit 30m; 2 | lua_shared_dict waf_drop_ip 10m; 3 | lua_shared_dict waf_drop_sum 10m; -------------------------------------------------------------------------------- /route/static/images/ico-ts-refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/images/ico-ts-refresh.png -------------------------------------------------------------------------------- /route/static/images/ico-ts-score1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/images/ico-ts-score1.png -------------------------------------------------------------------------------- /route/static/images/ico-ts-score2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/images/ico-ts-score2.png -------------------------------------------------------------------------------- /route/static/images/ico-ts-score3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/images/ico-ts-score3.png -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_data.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_data.png -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_day.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_day.png -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_exit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_exit.png -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_ftp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_ftp.png -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_home.png -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_log.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_log.png -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_set.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_set.png -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_soft.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_soft.png -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_web.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-app.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-beta.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-beta.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-cmd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-cmd.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-log.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-log.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-logs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-logs.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-node.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-node.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-pm2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-pm2.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-psync.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-psync.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-rsync.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-rsync.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-score.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-score.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-test.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-txcos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-txcos.png -------------------------------------------------------------------------------- /route/static/language/list.json: -------------------------------------------------------------------------------- 1 | [ 2 | {"name":"Simplified_Chinese","title":"简体中文"}, 3 | {"name":"English","title":"English"} 4 | ] -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: midoks 4 | 5 | custom: https://afdian.net/a/mdserver-web -------------------------------------------------------------------------------- /plugins/openresty/conf/vhost/0.websocket.conf: -------------------------------------------------------------------------------- 1 | map $http_upgrade $connection_upgrade { 2 | default upgrade; 3 | '' close; 4 | } 5 | -------------------------------------------------------------------------------- /rewrite/nginx/thinkphp.conf: -------------------------------------------------------------------------------- 1 | location / { 2 | if (!-e $request_filename){ 3 | rewrite ^(.*)$ /index.php?s=$1 last; break; 4 | } 5 | } -------------------------------------------------------------------------------- /route/static/build/addons/attach/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "xterm.attach", 3 | "main": "attach.js", 4 | "private": true 5 | } 6 | -------------------------------------------------------------------------------- /route/static/codemirror/addon/display/fullscreen.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-fullscreen{position:fixed;top:0;left:0;right:0;bottom:0;height:auto;z-index:9} -------------------------------------------------------------------------------- /route/static/images/ico-ts-cpu-active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/images/ico-ts-cpu-active.png -------------------------------------------------------------------------------- /route/static/images/ico-ts-mem-active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/images/ico-ts-mem-active.png -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_folder.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-apache.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-apache.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-mongodb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-mongodb.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-phpsafe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-phpsafe.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-tomcat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-tomcat.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-webhook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-webhook.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-yunsuo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-yunsuo.png -------------------------------------------------------------------------------- /route/static/layer/skin/default/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/layer/skin/default/close.png -------------------------------------------------------------------------------- /route/static/layer/skin/default/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/layer/skin/default/icon.png -------------------------------------------------------------------------------- /plugins/webstats/conf/webstats.conf: -------------------------------------------------------------------------------- 1 | lua_shared_dict mw_total 100m; 2 | lua_need_request_body off; 3 | include {$SERVER_APP}/lua/webstats_log.lua; -------------------------------------------------------------------------------- /route/static/images/ico-ts-disk-active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/images/ico-ts-disk-active.png -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_control.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_control.png -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_firewall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_firewall.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-cmd-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-cmd-hover.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-deployment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-deployment.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-pure-ftpd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-pure-ftpd.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-pureftpd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-pureftpd.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-safelogin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-safelogin.png -------------------------------------------------------------------------------- /route/static/layer/skin/default/icon-ext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/layer/skin/default/icon-ext.png -------------------------------------------------------------------------------- /route/templates/default/plugin_menu.html: -------------------------------------------------------------------------------- 1 | {% extends "layout.html" %} 2 | {% block content %} 3 | {{data['plugin_content']|safe }} 4 | {% endblock %} -------------------------------------------------------------------------------- /rewrite/nginx/mvc.conf: -------------------------------------------------------------------------------- 1 | location / { 2 | if (!-e $request_filename) { 3 | rewrite ^(.*)$ /index.php/$1 last; 4 | break; 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /route/static/build/addons/fullscreen/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "xterm.fullscreen", 3 | "main": "fullscreen.js", 4 | "private": true 5 | } 6 | -------------------------------------------------------------------------------- /route/static/build/addons/terminado/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "xterm.terminado", 3 | "main": "terminado.js", 4 | "private": true 5 | } 6 | -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_data_active.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_data_active.gif -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_data_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_data_active.png -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_day_active.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_day_active.gif -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_day_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_day_active.png -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_exit_active.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_exit_active.gif -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_exit_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_exit_active.png -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_ftp_active.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_ftp_active.gif -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_ftp_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_ftp_active.png -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_home_active.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_home_active.gif -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_home_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_home_active.png -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_log_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_log_active.png -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_set_active.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_set_active.gif -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_set_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_set_active.png -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_soft_active.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_soft_active.gif -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_soft_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_soft_active.png -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_web_active.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_web_active.gif -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_web_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_web_active.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-task_manager.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-task_manager.png -------------------------------------------------------------------------------- /route/static/layer/skin/default/loading-0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/layer/skin/default/loading-0.gif -------------------------------------------------------------------------------- /route/static/layer/skin/default/loading-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/layer/skin/default/loading-1.gif -------------------------------------------------------------------------------- /route/static/layer/skin/default/loading-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/layer/skin/default/loading-2.gif -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_control_active.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_control_active.gif -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_control_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_control_active.png -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_folder_active.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_folder_active.gif -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_folder_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_folder_active.png -------------------------------------------------------------------------------- /route/static/img/soft_ico/ico-load_leveling.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/soft_ico/ico-load_leveling.png -------------------------------------------------------------------------------- /route/static/layer/skin/default/close_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/layer/skin/default/close_hover.png -------------------------------------------------------------------------------- /plugins/xhprof/lib/xhprof_html/jquery/indicator.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/plugins/xhprof/lib/xhprof_html/jquery/indicator.gif -------------------------------------------------------------------------------- /rewrite/nginx/emlog.conf: -------------------------------------------------------------------------------- 1 | location / { 2 | index index.php index.html; 3 | if (!-e $request_filename) 4 | { 5 | rewrite ^/(.*)$ /index.php last; 6 | } 7 | } -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_firewall_active.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_firewall_active.gif -------------------------------------------------------------------------------- /route/static/img/ico/menu_icon_firewall_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/img/ico/menu_icon_firewall_active.png -------------------------------------------------------------------------------- /plugins/op_waf/waf/total.json: -------------------------------------------------------------------------------- 1 | {"rules":{"path":0,"php_path":0,"upload_ext":0,"user_agent":0,"scan":0,"cookie":0,"post":0,"args":0,"url":0,"cc":0},"sites":{},"total":0} -------------------------------------------------------------------------------- /plugins/webstats/t/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin 3 | export PATH 4 | 5 | python3 index.py 6 | 7 | -------------------------------------------------------------------------------- /rewrite/nginx/shopex.conf: -------------------------------------------------------------------------------- 1 | location / { 2 | if (!-e $request_filename) { 3 | rewrite ^/(.+\.(html|xml|json|htm|php|jsp|asp|shtml))$ /index.php?$1 last; 4 | } 5 | } -------------------------------------------------------------------------------- /route/static/laydate/theme/default/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/laydate/theme/default/font/iconfont.eot -------------------------------------------------------------------------------- /route/static/laydate/theme/default/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/laydate/theme/default/font/iconfont.ttf -------------------------------------------------------------------------------- /route/static/laydate/theme/default/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/laydate/theme/default/font/iconfont.woff -------------------------------------------------------------------------------- /plugins/php/conf/phpinfo.conf: -------------------------------------------------------------------------------- 1 | location /{$PHP_VERSION} { 2 | root {$ROOT_PATH}/phpinfo; 3 | include {$SERVER_PATH}/web_conf/php/conf/enable-php-{$PHP_VERSION}.conf; 4 | } -------------------------------------------------------------------------------- /rewrite/nginx/phpwind.conf: -------------------------------------------------------------------------------- 1 | location / { 2 | rewrite ^(.*)-htm-(.*)$ $1.php?$2 last; 3 | rewrite ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2 last; 4 | } -------------------------------------------------------------------------------- /rewrite/nginx/fastdfs.conf: -------------------------------------------------------------------------------- 1 | location ~/group([0-9])/M00 { 2 | # Need to cooperate with it 3 | # https://github.com/mw-plugin/fastdfs 4 | ngx_fastdfs_module; 5 | } 6 | -------------------------------------------------------------------------------- /docker/start.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Customize the script 3 | After=network.target 4 | 5 | [Service] 6 | ExecStart=/start.sh 7 | 8 | [Install] 9 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /plugins/php-apt/conf/phpinfo.conf: -------------------------------------------------------------------------------- 1 | location /{$PHP_VERSION} { 2 | root {$ROOT_PATH}/phpinfo; 3 | include {$SERVER_PATH}/web_conf/php/conf/enable-php-apt{$PHP_VERSION}.conf; 4 | } -------------------------------------------------------------------------------- /plugins/php-yum/conf/phpinfo.conf: -------------------------------------------------------------------------------- 1 | location /{$PHP_VERSION} { 2 | root {$ROOT_PATH}/phpinfo; 3 | include {$SERVER_PATH}/web_conf/php/conf/enable-php-yum{$PHP_VERSION}.conf; 4 | } -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/ISSUE_TEMPLATE_2.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 需求提交 3 | about: 需求描述 4 | --- 5 | 6 | ## 需求 7 | 8 | 想开发一个什么插件? 9 | 想有什么功能? 10 | 11 | 12 | ## 提供参考 13 | 14 | 给开发者提供参考! -------------------------------------------------------------------------------- /route/static/bootstrap-3.3.5/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/bootstrap-3.3.5/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /route/static/bootstrap-3.3.5/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/bootstrap-3.3.5/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /route/static/bootstrap-3.3.5/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/bootstrap-3.3.5/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /route/static/bootstrap-3.3.5/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netcccyun/mdserver-web/master/route/static/bootstrap-3.3.5/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /scripts/install/unknow.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin:/opt/homebrew/bin 3 | export PATH 4 | LANG=en_US.UTF-8 5 | 6 | echo "unkown server!!!" -------------------------------------------------------------------------------- /plugins/rsyncd/conf/rsyncd.conf: -------------------------------------------------------------------------------- 1 | uid = www 2 | gid = www 3 | use chroot = no 4 | max connections = 100 5 | log file = /var/log/rsyncd.log 6 | pid file = /var/run/rsyncd.pid 7 | list = false 8 | hosts allow = * -------------------------------------------------------------------------------- /plugins/webssh/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /scripts/update/unknow.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin:/opt/homebrew/bin 3 | export PATH 4 | LANG=en_US.UTF-8 5 | 6 | echo "update unkown server!!!" -------------------------------------------------------------------------------- /plugins/php-guard/index.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /plugins/rsyncd/conf/lsyncd.conf: -------------------------------------------------------------------------------- 1 | settings { 2 | logfile = "{$SERVER_PATH}/rsyncd/lsyncd.log", 3 | inotifyMode = "CloseWrite", 4 | maxProcesses = 8, 5 | statusFile = "{$SERVER_PATH}/rsyncd/lsyncd.status" 6 | } -------------------------------------------------------------------------------- /route/static/codemirror/addon/search/matchesonscrollbar.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-search-match{background:gold;border-top:1px solid orange;border-bottom:1px solid orange;-moz-box-sizing:border-box;box-sizing:border-box;opacity:.5} -------------------------------------------------------------------------------- /clear.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin:/usr/local/lib/python2.7/bin 3 | 4 | 5 | 6 | find . -name .DS_Store | xargs rm -rf 7 | find . -type d -name "*.pyc" | xargs rm -rf -------------------------------------------------------------------------------- /plugins/php/conf/php-fpm.conf: -------------------------------------------------------------------------------- 1 | 2 | [global] 3 | pid = run/php-fpm.pid 4 | error_log = log/php-fpm.log 5 | include={$SERVER_PATH}/php/{$PHP_VERSION}/etc/php-fpm.d/*.conf 6 | php_value[auto_prepend_file]={$SERVER_PATH}/php/app_start.php -------------------------------------------------------------------------------- /plugins/sys-opt/js/sys-opt.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | function pRead(){ 4 | var readme = ''; 7 | 8 | $('.soft-man-con').html(readme); 9 | } -------------------------------------------------------------------------------- /scripts/init.d/service.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin 3 | export PATH 4 | 5 | cd /www/server/mdserver-web 6 | if [ -f bin/activate ];then 7 | source bin/activate 8 | fi -------------------------------------------------------------------------------- /plugins/php/conf/phpfpm_status.conf: -------------------------------------------------------------------------------- 1 | location /phpfpm_status_{$PHP_VERSION} { 2 | fastcgi_pass unix:/tmp/php-cgi-{$PHP_VERSION}.sock; 3 | include fastcgi_params; 4 | fastcgi_param SCRIPT_FILENAME \$fastcgi_script_name; 5 | } -------------------------------------------------------------------------------- /rewrite/nginx/proxy.conf: -------------------------------------------------------------------------------- 1 | 2 | location / { 3 | proxy_pass http://localhost:11334/; 4 | proxy_set_header Host $host; 5 | proxy_set_header X-Real-IP $remote_addr; 6 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 7 | } 8 | -------------------------------------------------------------------------------- /scripts/update/macos.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin:/opt/homebrew/bin 3 | export PATH 4 | LANG=en_US.UTF-8 5 | 6 | echo 'The development environment only needs to be downloaded again!' 7 | exit 0 -------------------------------------------------------------------------------- /plugins/op_waf/waf/rule/user_agent.json: -------------------------------------------------------------------------------- 1 | [[1,"(HTTrack|Apache-HttpClient|harvest|audit|dirbuster|pangolin|nmap|sqln|hydra|Parser|libwww|BBBike|sqlmap|w3af|owasp|Nikto|fimap|havij|zmeu|BabyKrokodil|netsparker|httperf| SF/)","关键词过滤1",0],[1,"(ApacheBench)","AB测试",0]] -------------------------------------------------------------------------------- /route/static/build/addons/fullscreen/fullscreen.css: -------------------------------------------------------------------------------- 1 | .xterm.fullscreen { 2 | position: fixed; 3 | top: 0; 4 | bottom: 0; 5 | left: 0; 6 | right: 0; 7 | width: auto; 8 | height: auto; 9 | z-index: 255; 10 | } 11 | -------------------------------------------------------------------------------- /plugins/pureftp/conf/ftps.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE IF NOT EXISTS `ftps` ( 2 | `id` INTEGER PRIMARY KEY AUTOINCREMENT, 3 | `pid` INTEGER, 4 | `name` TEXT, 5 | `password` TEXT, 6 | `path` TEXT, 7 | `status` TEXT, 8 | `ps` TEXT, 9 | `addtime` TEXT 10 | ); -------------------------------------------------------------------------------- /plugins/tamper_proof_py/conf/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "open": true, 3 | "excludePath": [ "cache", "threadcache", "log", "logs", "config", "runtime", "temp","tmp","caches","tmps"], 4 | "protectExt": [ "php", "html", "htm", "shtml", "tpl", "js", "css", "jsp", "do" ] 5 | } -------------------------------------------------------------------------------- /plugins/openresty/conf/vhost/0.nginx_status.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | listen [::]:80; 4 | server_name 127.0.0.1; 5 | allow 127.0.0.1; 6 | location /nginx_status { 7 | stub_status on; 8 | access_log off; 9 | } 10 | } -------------------------------------------------------------------------------- /rewrite/nginx/proxydg.conf: -------------------------------------------------------------------------------- 1 | location / { 2 | proxy_redirect off; 3 | proxy_pass http://127.0.0.1:12345; 4 | proxy_http_version 1.1; 5 | proxy_set_header Upgrade $http_upgrade; 6 | proxy_set_header Connection "upgrade"; 7 | proxy_set_header Host $http_host; 8 | } -------------------------------------------------------------------------------- /plugins/op_waf/shell/cpu_usage.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | DST_DIR=/www/server/op_waf 4 | DIS_FILE=${DST_DIR}/cpu.info 5 | 6 | CPU_USAGE=`top -bn 1 | fgrep 'Cpu(s)' | awk '{print 100 -$8}' | awk -F . '{print $1}'` 7 | echo $CPU_USAGE 8 | echo $CPU_USAGE > $DIS_FILE 9 | echo "done success!" -------------------------------------------------------------------------------- /plugins/php/conf/enable-php.conf: -------------------------------------------------------------------------------- 1 | set $PHP_ENV 1; 2 | location ~ [^/]\.php(/|$) 3 | { 4 | try_files $uri =404; 5 | fastcgi_pass unix:/tmp/php-cgi-{$PHP_VERSION}.sock; 6 | fastcgi_index index.php; 7 | include fastcgi.conf; 8 | include {$SERVER_PATH}/web_conf/php/pathinfo.conf; 9 | } -------------------------------------------------------------------------------- /rewrite/nginx/zblog.conf: -------------------------------------------------------------------------------- 1 | location / { 2 | if (-f $request_filename/index.html){ 3 | rewrite (.*) $1/index.html break; 4 | } 5 | if (-f $request_filename/index.php){ 6 | rewrite (.*) $1/index.php; 7 | } 8 | if (!-f $request_filename){ 9 | rewrite (.*) /index.php; 10 | } 11 | } -------------------------------------------------------------------------------- /plugins/php-apt/conf/enable-php.conf: -------------------------------------------------------------------------------- 1 | set $PHP_ENV 1; 2 | location ~ [^/]\.php(/|$) 3 | { 4 | try_files $uri =404; 5 | fastcgi_pass unix:/run/php/php{$PHP_VERSION}-fpm.sock; 6 | fastcgi_index index.php; 7 | include fastcgi.conf; 8 | include {$SERVER_PATH}/web_conf/php/pathinfo.conf; 9 | } -------------------------------------------------------------------------------- /rewrite/nginx/typecho.conf: -------------------------------------------------------------------------------- 1 | location / { 2 | if (!-e $request_filename) { 3 | rewrite ^(.*)$ /index.php$1 last; 4 | } 5 | } 6 | 7 | # 不需要,可以删除 8 | location /typecho/ { 9 | if (!-e $request_filename) { 10 | rewrite ^(.*)$ /typecho/index.php$1 last; 11 | } 12 | } 13 | 14 | -------------------------------------------------------------------------------- /plugins/gogs/init.d/gogs.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Gogs 3 | After=network.target 4 | 5 | [Service] 6 | Type=forking 7 | ExecStart={$SERVER_PATH}/gogs/init.d/gogs start 8 | ExecStop={$SERVER_PATH}/gogs/init.d/gogs stop 9 | RemainAfterExit=yes 10 | 11 | [Install] 12 | WantedBy=multi-user.target 13 | -------------------------------------------------------------------------------- /rewrite/nginx/header_cors.conf: -------------------------------------------------------------------------------- 1 | 2 | add_header Access-Control-Allow-Origin *; 3 | add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS'; 4 | 5 | 6 | 7 | #add_header Access-Control-Allow-Origin *; 8 | #add_header Access-Control-Allow-Methods *; 9 | #add_header Access-Control-Allow-Header *; 10 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yaml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: true 2 | contact_links: 3 | - name: 提出问题 4 | url: https://github.com/midoks/mdserver-web/discussions 5 | about: 请在讨论中提出问题。 6 | - name: 提出建议 7 | url: https://github.com/midoks/mdserver-web/discussions/categories/proposal 8 | about: 请在讨论中提出建议。 9 | -------------------------------------------------------------------------------- /plugins/php-yum/conf/enable-php.conf: -------------------------------------------------------------------------------- 1 | set $PHP_ENV 1; 2 | location ~ [^/]\.php(/|$) 3 | { 4 | try_files $uri =404; 5 | fastcgi_pass unix:/var/opt/remi/php{$PHP_VERSION}/run/php-fpm/www.sock; 6 | fastcgi_index index.php; 7 | include fastcgi.conf; 8 | include {$SERVER_PATH}/web_conf/php/pathinfo.conf; 9 | } -------------------------------------------------------------------------------- /plugins/op_waf/waf/rule/scan_black.json: -------------------------------------------------------------------------------- 1 | {"header": "(Acunetix-Aspect|Acunetix-Aspect-Password|Acunetix-Aspect-Queries|X-WIPP|X-RequestManager-Memo|X-Request-Memo|X-Scan-Memo)", "args": "(/acunetix-wvs-test-for-some-inexistent-file|netsparker|acunetix_wvs_security_test|AppScan|XSS@HERE)", "cookie": "(CustomCookie|acunetixCookie)"} -------------------------------------------------------------------------------- /plugins/rsyncd/init.d/lsyncd.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Lightweight inotify based sync daemon 3 | ConditionPathExists={$SERVER_PATH}/rsyncd/lsyncd.conf 4 | 5 | [Service] 6 | Type=simple 7 | ExecStart={$LSYNCD_BIN} -nodaemon {$SERVER_PATH}/rsyncd/lsyncd.conf 8 | 9 | [Install] 10 | WantedBy=multi-user.target 11 | -------------------------------------------------------------------------------- /plugins/rsyncd/init.d/rsyncd.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=fast remote file copy program daemon 3 | ConditionPathExists={$SERVER_PATH}/rsyncd/rsyncd.conf 4 | 5 | [Service] 6 | ExecStart={$RSYNC_BIN} --config={$SERVER_PATH}/rsyncd/rsyncd.conf --daemon --no-detach 7 | 8 | [Install] 9 | WantedBy=multi-user.target 10 | -------------------------------------------------------------------------------- /route/templates/default/close.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 抱歉,管理员已关闭面板 6 | 7 | 8 |

开启命令

9 |

mw open

10 |
11 | 12 | 13 | -------------------------------------------------------------------------------- /plugins/imail/init.d/imail.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Imail Simple Mail Server 3 | After=network.target 4 | 5 | [Service] 6 | Type=forking 7 | ExecStart={$SERVER_PATH}/imail/init.d/imail start 8 | ExecStop={$SERVER_PATH}/imail/init.d/imail stop 9 | RemainAfterExit=yes 10 | 11 | [Install] 12 | WantedBy=multi-user.target 13 | -------------------------------------------------------------------------------- /plugins/php/conf/pathinfo.conf: -------------------------------------------------------------------------------- 1 | set $real_script_name $fastcgi_script_name; 2 | if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") { 3 | set $real_script_name $1; 4 | set $path_info $2; 5 | } 6 | fastcgi_param SCRIPT_FILENAME $document_root$real_script_name; 7 | fastcgi_param SCRIPT_NAME $real_script_name; 8 | fastcgi_param PATH_INFO $path_info; -------------------------------------------------------------------------------- /plugins/swap/init.d/swap.service.tpl: -------------------------------------------------------------------------------- 1 | 2 | [Unit] 3 | Description=Swap Process Manager 4 | After=network.target 5 | 6 | [Service] 7 | Type=forking 8 | ExecStart={$SERVER_PATH}/swap/init.d/swap start 9 | ExecStop={$SERVER_PATH}/swap/init.d/swap stop 10 | RemainAfterExit=yes 11 | 12 | 13 | [Install] 14 | WantedBy=multi-user.target 15 | -------------------------------------------------------------------------------- /rewrite/nginx/gunicorn.conf: -------------------------------------------------------------------------------- 1 | 2 | add_header Access-Control-Allow-Origin *; 3 | add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS'; 4 | 5 | location / { 6 | proxy_pass http://127.0.0.1:8000; # 这里是指向 gunicorn host 的服务地址 7 | proxy_set_header Host $host; 8 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 9 | } -------------------------------------------------------------------------------- /plugins/php-apt/conf/pathinfo.conf: -------------------------------------------------------------------------------- 1 | set $real_script_name $fastcgi_script_name; 2 | if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") { 3 | set $real_script_name $1; 4 | set $path_info $2; 5 | } 6 | fastcgi_param SCRIPT_FILENAME $document_root$real_script_name; 7 | fastcgi_param SCRIPT_NAME $real_script_name; 8 | fastcgi_param PATH_INFO $path_info; -------------------------------------------------------------------------------- /plugins/php-yum/conf/pathinfo.conf: -------------------------------------------------------------------------------- 1 | set $real_script_name $fastcgi_script_name; 2 | if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") { 3 | set $real_script_name $1; 4 | set $path_info $2; 5 | } 6 | fastcgi_param SCRIPT_FILENAME $document_root$real_script_name; 7 | fastcgi_param SCRIPT_NAME $real_script_name; 8 | fastcgi_param PATH_INFO $path_info; -------------------------------------------------------------------------------- /plugins/gitea/hook/self_hook.tpl: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | H_DIR={$HOOK_DIR} 4 | HL_DIR={$HOOK_LOGS_DIR} 5 | 6 | 7 | SH_LIST=`cd ${H_DIR} && ls | grep ".sh$"` 8 | 9 | for sh_f in $SH_LIST; do 10 | ABS_FILE=${H_DIR}/${sh_f} 11 | ABS_LOGS=${HL_DIR}/${sh_f}.log 12 | echo "sh ${ABS_FILE} 2>${ABS_LOGS}" 13 | sh -x ${ABS_FILE} 2>${ABS_LOGS} 14 | done -------------------------------------------------------------------------------- /plugins/gogs/hook/self_hook.tpl: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | H_DIR={$HOOK_DIR} 4 | HL_DIR={$HOOK_LOGS_DIR} 5 | 6 | 7 | SH_LIST=`cd ${H_DIR} && ls | grep ".sh$"` 8 | 9 | for sh_f in $SH_LIST; do 10 | ABS_FILE=${H_DIR}/${sh_f} 11 | ABS_LOGS=${HL_DIR}/${sh_f}.log 12 | echo "sh ${ABS_FILE} 2>${ABS_LOGS}" 13 | sh -x ${ABS_FILE} 2>${ABS_LOGS} 14 | done -------------------------------------------------------------------------------- /plugins/redis/init.d/redis.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Redis In-Memory Data Store 3 | After=network.target 4 | 5 | [Service] 6 | Type=forking 7 | ExecStart={$SERVER_PATH}/redis/bin/redis-server {$SERVER_PATH}/redis/redis.conf 8 | ExecReload=/bin/kill -USR2 $MAINPID 9 | Restart=on-failure 10 | 11 | [Install] 12 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /plugins/dynamic-tracking/versions/centos.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin 3 | export PATH 4 | 5 | curPath=`pwd` 6 | rootPath=$(dirname "$curPath") 7 | rootPath=$(dirname "$rootPath") 8 | serverPath=$(dirname "$rootPath") 9 | 10 | install_tmp=${rootPath}/tmp/mw_install.pl 11 | SYS_ARCH=`arch` -------------------------------------------------------------------------------- /plugins/msonedrive/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "hook":["backup"], 3 | "title": "OneDrive", 4 | "tip": "lib", 5 | "name": "msonedrive", 6 | "type": "sort", 7 | "ps": "微软家的云网盘服务", 8 | "versions": "1.0", 9 | "shell": "install.sh", 10 | "checks": "server/msonedrive", 11 | "author": "midoks", 12 | "date": "2023-8-18", 13 | "pid": "5" 14 | } 15 | -------------------------------------------------------------------------------- /plugins/sphinx/init.d/sphinx.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Open Source Search Server 3 | After=network.target 4 | 5 | [Service] 6 | Type=forking 7 | ExecStart={$SERVER_PATH}/sphinx/bin/bin/searchd -c {$SERVER_PATH}/sphinx/sphinx.conf 8 | ExecReload=/bin/kill -USR2 $MAINPID 9 | Restart=on-failure 10 | 11 | [Install] 12 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /plugins/sys-opt/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "id":3, 3 | "title":"系统优化", 4 | "tip":"soft", 5 | "name":"sys-opt", 6 | "type":"扩展", 7 | "ps":"仅Linux系统优化", 8 | "versions":"1.0", 9 | "shell":"install.sh", 10 | "checks":"server/sys-opt", 11 | "path": "server/sys-opt", 12 | "author":"midoks", 13 | "home":"", 14 | "date":"2018-12-20", 15 | "pid":"5" 16 | } -------------------------------------------------------------------------------- /plugins/dynamic-tracking/versions/ubuntu.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin 3 | export PATH 4 | 5 | curPath=`pwd` 6 | rootPath=$(dirname "$curPath") 7 | rootPath=$(dirname "$rootPath") 8 | serverPath=$(dirname "$rootPath") 9 | 10 | install_tmp=${rootPath}/tmp/mw_install.pl 11 | SYS_ARCH=`arch` 12 | -------------------------------------------------------------------------------- /plugins/dynamic-tracking/static/css/ico.css: -------------------------------------------------------------------------------- 1 | 2 | /* menu start */ 3 | .menu .current .menu_dynamic-tracking:hover { 4 | background-image: url("/plugins/file?name=dynamic-tracking&f=ico.png"); 5 | } 6 | 7 | .menu .menu_plugin_dynamic-tracking { 8 | background-image: url("/plugins/file?name=dynamic-tracking&f=ico.png"); 9 | } 10 | 11 | /* menu end */ -------------------------------------------------------------------------------- /plugins/varnish/tpl/default.vcl: -------------------------------------------------------------------------------- 1 | # https://www.varnish-cache.org/docs/ 2 | vcl 4.0; 3 | 4 | # Default backend definition. Set this to point to your content server. 5 | backend default { 6 | .host = "127.0.0.1"; 7 | .port = "8080"; 8 | } 9 | 10 | sub vcl_recv { 11 | } 12 | 13 | sub vcl_backend_response { 14 | } 15 | 16 | sub vcl_deliver { 17 | } 18 | -------------------------------------------------------------------------------- /plugins/tgbot/init.d/tgbot.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Tgbot Service 3 | After=network.target 4 | 5 | [Service] 6 | Type=forking 7 | ExecStart={$APP_PATH}/init.d/tgbot start 8 | ExecStop={$APP_PATH}/init.d/tgbot stop 9 | ExecReload={$APP_PATH}/init.d/tgbot reload 10 | KillMode=process 11 | Restart=on-failure 12 | 13 | [Install] 14 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /plugins/varnish/tpl/default_note.vcl: -------------------------------------------------------------------------------- 1 | # https://www.varnish-cache.org/docs/ 2 | vcl 4.0; 3 | 4 | # Default backend definition. Set this to point to your content server. 5 | backend default { 6 | .host = "127.0.0.1"; 7 | .port = "8080"; 8 | } 9 | 10 | sub vcl_recv { 11 | } 12 | 13 | sub vcl_backend_response { 14 | } 15 | 16 | sub vcl_deliver { 17 | } 18 | -------------------------------------------------------------------------------- /plugins/clean/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "title":"日志清理", 3 | "tip":"soft", 4 | "name":"clean", 5 | "type":"运行环境", 6 | "ps":"日志清理", 7 | "versions":"1.0", 8 | "updates":"1.0", 9 | "shell":"install.sh", 10 | "checks":"server/clean", 11 | "path": "server/clean", 12 | "author":"clean", 13 | "home":"https://github.com/midoks", 14 | "date":"2021-11-23", 15 | "pid": "5" 16 | } -------------------------------------------------------------------------------- /plugins/rsyncd/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "id":3, 3 | "title":"rsyncd", 4 | "tip":"soft", 5 | "name":"rsyncd", 6 | "type":"软件", 7 | "ps":"rsyncd同步助手", 8 | "versions":"2.0", 9 | "shell":"install.sh", 10 | "checks":"server/rsyncd", 11 | "path": "server/rsyncd", 12 | "author":"samba", 13 | "home":"https://rsync.samba.org/", 14 | "date":"2019-03-05", 15 | "pid":"4" 16 | } -------------------------------------------------------------------------------- /plugins/swap/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 7, 3 | "ps": "Linux虚拟内存", 4 | "name": "swap", 5 | "title": "swap", 6 | "shell": "install.sh", 7 | "versions":"1.1", 8 | "tip": "soft", 9 | "checks": "server/swap", 10 | "path": "server/swap", 11 | "display": 1, 12 | "author": "swap", 13 | "date": "2021-01-29", 14 | "home": "swap", 15 | "type": 0, 16 | "pid": "4" 17 | } -------------------------------------------------------------------------------- /plugins/mosquitto/init.d/mosquitto.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Mosquitto MQTT Broker 3 | After=network.target 4 | 5 | [Service] 6 | Type=forking 7 | ExecStart={$SERVER_PATH}/mosquitto/sbin/mosquitto -c {$SERVER_PATH}/mosquitto/etc/mosquitto/mosquitto.conf 8 | ExecReload=/bin/kill -USR2 $MAINPID 9 | Restart=on-failure 10 | 11 | [Install] 12 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/ISSUE_TEMPLATE_1.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: BUG提交 3 | about: 问题描述 4 | --- 5 | 6 | ## 什么系统 ? 7 | 8 | Debian x, Centos x, Centos x stream, Ubuntu x? 9 | 10 | ## 错误信息 ? 11 | 12 | Ex: 13 | ```bash 14 | 一个issue,一个问题。多余问题,视情况而答。 15 | ``` 16 | 17 | ## 错误截图 ? 18 | 19 | ... 20 | 21 | 22 | ## 浏览器版本 ? 23 | 24 | ... 25 | 26 | 27 | ## 软件版本(插件/面板) ? 28 | 29 | ... 30 | -------------------------------------------------------------------------------- /plugins/tgclient/init.d/tgclient.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Tgbot Service 3 | After=network.target 4 | 5 | [Service] 6 | Type=forking 7 | ExecStart={$APP_PATH}/init.d/tgclient start 8 | ExecStop={$APP_PATH}/init.d/tgclient stop 9 | ExecReload={$APP_PATH}/init.d/tgclient reload 10 | KillMode=process 11 | Restart=on-failure 12 | 13 | [Install] 14 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /plugins/mongodb/config/mongodb.conf: -------------------------------------------------------------------------------- 1 | dbpath = {$SERVER_PATH}/mongodb/data 2 | logpath = {$SERVER_PATH}/mongodb/logs/mongodb.log 3 | logappend = true 4 | bind_ip = 127.0.0.1 5 | port = 27017 6 | fork = true 7 | auth = false 8 | #smallfiles = true 9 | 10 | # Master/slave replication is no longer supported 11 | #master = true 12 | 13 | pidfilepath = {$SERVER_PATH}/mongodb/mongodb.pid 14 | -------------------------------------------------------------------------------- /plugins/keepalived/init.d/keepalived.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Redis In-Memory Data Store 3 | After=network.target 4 | 5 | [Service] 6 | Type=forking 7 | ExecStart={$SERVER_PATH}/keepalived/sbin/keepalived -D 8 | ExecReload=/bin/kill -USR1 $MAINPID 9 | Restart=on-failure 10 | StandardOutput={$SERVER_PATH}/keepalived/keepalived.log 11 | 12 | [Install] 13 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /plugins/supervisor/init.d/supervisor.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=supervisor server daemon 3 | After=network.target 4 | 5 | [Service] 6 | Type=forking 7 | ExecStart={$SUP_BIN} -c {$SERVER_PATH}/supervisor/supervisor.conf 8 | ExecStop=kill -s TERM $MAINPID 9 | ExecReload=kill -s HUP $MAINPID 10 | KillMode=process 11 | Restart=on-failure 12 | 13 | [Install] 14 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /plugins/op_waf/t/bench/simple.lua: -------------------------------------------------------------------------------- 1 | local function target() 2 | ngx.re.find("hello, world.", [[\w+\.]], "jo") 3 | end 4 | for i = 1, 100 do 5 | target() 6 | end 7 | 8 | collectgarbage() 9 | 10 | ngx.update_time() 11 | local begin = ngx.now() 12 | local N = 1e7 13 | for i = 1, N do 14 | target() 15 | end 16 | ngx.update_time() 17 | 18 | ngx.say("elapsed: ", (ngx.now() - begin) / N) -------------------------------------------------------------------------------- /plugins/webstats/t/bench/simple.lua: -------------------------------------------------------------------------------- 1 | local function target() 2 | ngx.re.find("hello, world.", [[\w+\.]], "jo") 3 | end 4 | for i = 1, 100 do 5 | target() 6 | end 7 | 8 | collectgarbage() 9 | 10 | ngx.update_time() 11 | local begin = ngx.now() 12 | local N = 1e7 13 | for i = 1, N do 14 | target() 15 | end 16 | ngx.update_time() 17 | 18 | ngx.say("elapsed: ", (ngx.now() - begin) / N) -------------------------------------------------------------------------------- /rewrite/nginx/wordpress.conf: -------------------------------------------------------------------------------- 1 | location / { 2 | index index.html index.php; 3 | if (-f $request_filename/index.html){ 4 | rewrite (.*) $1/index.html break; 5 | } 6 | if (-f $request_filename/index.php){ 7 | rewrite (.*) $1/index.php; 8 | } 9 | if (!-f $request_filename){ 10 | rewrite (.*) /index.php; 11 | } 12 | } 13 | 14 | rewrite /wp-admin$ $scheme://$host$uri/ permanent; -------------------------------------------------------------------------------- /plugins/pureftp/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "title":"PureFtpd", 3 | "tip":"soft", 4 | "name":"pureftp", 5 | "ps":"一款免费FTP服务器软件", 6 | "versions": "1.0.49", 7 | "shell":"install.sh", 8 | "checks":"server/pureftp", 9 | "path":"server/pureftp", 10 | "author":"mdserver-web", 11 | "home":"https://github.com/midoks/mdserver-web", 12 | "date":"2018-11-30", 13 | "dev_update":"2022-6-18", 14 | "pid":"3" 15 | } -------------------------------------------------------------------------------- /plugins/gogs/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "ps": "Gogs是一款极易搭建的自助Git服务", 3 | "name": "gogs", 4 | "title": "Gogs", 5 | "versions": ["0.11.86","0.12.9","0.13.0"], 6 | "tip": "soft", 7 | "checks": "server/gogs", 8 | "path":"server/gogs", 9 | "author": "midoks", 10 | "date": "2018-04-01", 11 | "home": "https://gogs.io", 12 | "type": "Git服务器", 13 | "shell": "install.sh", 14 | "pid": "3", 15 | "sort": 7 16 | } -------------------------------------------------------------------------------- /plugins/lvs/readme.md: -------------------------------------------------------------------------------- 1 | debian 2 | 3 | # 查看网卡 4 | ls /sys/class/net/ 5 | 6 | ifconfig ens256 172.16.204.100 netmask 255.255.255.255 broadcast 192.168.212.100 up 7 | 8 | route add -host 172.16.204.100 dev ens256 9 | 10 | 11 | ipvsadm -A -t 172.16.204.100:80 -s rr 12 | ipvsadm -a -t 172.16.204.100:80 -r 172.16.204.129:80 -m 13 | 14 | # 清空LVS规则 15 | 16 | ipvsadm -C 17 | 18 | # 查看LVS 19 | 20 | ipvsadm -L -n -------------------------------------------------------------------------------- /rewrite/nginx/v2ray.conf: -------------------------------------------------------------------------------- 1 | location /{ 2 | if (!-e $request_filename) { 3 | rewrite ^(.*)$ /index.php/$1 last; 4 | break; 5 | } 6 | } 7 | 8 | location /ws { 9 | proxy_redirect off; 10 | proxy_pass http://127.0.0.1:34861; 11 | proxy_http_version 1.1; 12 | proxy_set_header Upgrade $http_upgrade; 13 | proxy_set_header Connection "upgrade"; 14 | proxy_set_header Host $http_host; 15 | } -------------------------------------------------------------------------------- /plugins/tamper_proof_py/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "网站防篡改程序[PY]", 3 | "tip": "lib", 4 | "name": "tamper_proof_py", 5 | "type": "soft", 6 | "ps": "事件型防篡改程序,可有效保护网站重要文件不被木马篡改", 7 | "versions": "1.0", 8 | "shell": "install.sh", 9 | "checks": "server/tamper_proof_py", 10 | "path": "server/tamper_proof_py", 11 | "author": "midoks", 12 | "home": "", 13 | "date":"2022-01-18", 14 | "pid":"4" 15 | } -------------------------------------------------------------------------------- /plugins/webhook/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 7, 3 | "ps": "WebHook,可设置回调脚本,通常用于第三方回调通知!", 4 | "name": "webhook", 5 | "title": "WebHook", 6 | "shell": "install.sh", 7 | "versions":["1.0"], 8 | "updates":["1.0"], 9 | "tip": "soft", 10 | "checks": "server/webhook", 11 | "path": "server/webhook", 12 | "display": 1, 13 | "author": "", 14 | "date": "2022-11-02", 15 | "home": "", 16 | "type": 0, 17 | "pid": "4" 18 | } -------------------------------------------------------------------------------- /scripts/init.d/mw-task.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=mw-task daemon 3 | After=network.target 4 | 5 | [Service] 6 | Type=simple 7 | WorkingDirectory={$SERVER_PATH} 8 | EnvironmentFile={$SERVER_PATH}/scripts/init.d/service.sh 9 | ExecStart=python3 task.py 10 | ExecStop=kill -HUP $MAINID 11 | ExecReload=kill -HUP $MAINID 12 | KillMode=process 13 | Restart=on-failure 14 | 15 | [Install] 16 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /plugins/op_load_balance/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "title":"OP负载均衡", 3 | "tip":"soft", 4 | "name":"op_load_balance", 5 | "type":"其他插件", 6 | "install_pre_inspection":true, 7 | "ps":"基于OpenResty的负载均衡", 8 | "shell":"install.sh", 9 | "checks":"server/op_load_balance", 10 | "path":"server/op_load_balance", 11 | "author":"midoks", 12 | "home":"https://github.com/midoks", 13 | "date":"2023-02-02", 14 | "pid": "1", 15 | "versions": ["1.0"] 16 | } -------------------------------------------------------------------------------- /plugins/varnish/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 7, 3 | "ps": "一款高性能的开源HTTP加速器", 4 | "name": "varnish", 5 | "title": "varnish", 6 | "shell": "install.sh", 7 | "versions":["1.0"], 8 | "updates":["1.0"], 9 | "tip": "soft", 10 | "checks": "server/varnish", 11 | "path": "server/varnish", 12 | "display": 1, 13 | "author": "midoks", 14 | "date": "2022-06-11", 15 | "home": "https://varnish-cache.org", 16 | "type": 0, 17 | "pid": "4" 18 | } -------------------------------------------------------------------------------- /rewrite/nginx/phpcms.conf: -------------------------------------------------------------------------------- 1 | location / { 2 | ###以下为PHPCMS 伪静态化rewrite法则 3 | rewrite ^(.*)show-([0-9]+)-([0-9]+)\.html$ $1/show.php?itemid=$2&page=$3; 4 | rewrite ^(.*)list-([0-9]+)-([0-9]+)\.html$ $1/list.php?catid=$2&page=$3; 5 | rewrite ^(.*)show-([0-9]+)\.html$ $1/show.php?specialid=$2; 6 | ####以下为PHPWind 伪静态化rewrite法则 7 | rewrite ^(.*)-htm-(.*)$ $1.php?$2 last; 8 | rewrite ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2 last; 9 | } -------------------------------------------------------------------------------- /plugins/nezha/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 7, 3 | "ps": "哪吒监控面板/改造版", 4 | "name": "nezha", 5 | "title": "哪吒监控", 6 | "shell": "install.sh", 7 | "versions":["0.15.2"], 8 | "tip": "soft", 9 | "checks": "server/nezha", 10 | "path": "server/nezha", 11 | "display": 1, 12 | "author": "midoks", 13 | "date": "2023-06-26", 14 | "home": "https://github.com/midoks/nezha", 15 | "doc1": "https://nezha.wiki/", 16 | "type": 0, 17 | "pid": "5" 18 | } -------------------------------------------------------------------------------- /plugins/op_waf/waf/lua/init_preload.lua: -------------------------------------------------------------------------------- 1 | local waf_root = "{$WAF_ROOT}" 2 | local waf_cpath = waf_root.."/waf/lua/?.lua;"..waf_root.."/waf/conf/?.lua;"..waf_root.."/waf/html/?.lua;" 3 | local waf_sopath = waf_root.."/waf/conf/?.so;" 4 | 5 | if not package.path:find(waf_cpath) then 6 | package.path = waf_cpath .. package.path 7 | end 8 | 9 | if not package.cpath:find(waf_sopath) then 10 | package.cpath = waf_sopath .. package.cpath 11 | end -------------------------------------------------------------------------------- /plugins/memcached/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 7, 3 | "ps": "是一个高性能的分布式内存对象缓存系统", 4 | "name": "memcached", 5 | "title": "Memcached", 6 | "shell": "install.sh", 7 | "versions":["1.6"], 8 | "updates":["1.6.21"], 9 | "tip": "soft", 10 | "checks": "server/memcached", 11 | "path":"server/memcached", 12 | "display": 1, 13 | "author": "memcached", 14 | "date": "2017-04-01", 15 | "home": "http://memcached.org/", 16 | "type": 0, 17 | "pid": "2" 18 | } -------------------------------------------------------------------------------- /plugins/pureftp/init.d/pureftp.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Pure-FTPd is a fast, production-quality, standard-conformant FTP server 3 | After=network.target 4 | 5 | 6 | 7 | [Service] 8 | Type=forking 9 | ExecStart={$SERVER_PATH}/pureftp/sbin/pure-ftpd {$SERVER_PATH}/pureftp/etc/pure-ftpd.conf 10 | ExecStop=/bin/kill -HUP $MAINPID 11 | ExecReload=/bin/kill -USR2 $MAINPID 12 | Restart=on-failure 13 | 14 | [Install] 15 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /plugins/op_waf/conf/init.sql: -------------------------------------------------------------------------------- 1 | PRAGMA synchronous = 0; 2 | PRAGMA page_size = 4096; 3 | PRAGMA journal_mode = wal; 4 | PRAGMA journal_size_limit = 1073741824; 5 | 6 | CREATE TABLE IF NOT EXISTS `logs` ( 7 | `time` INTEGER, 8 | `ip` TEXT, 9 | `domain` TEXT, 10 | `server_name` TEXT, 11 | `method` TEXT, 12 | `status_code` INTEGER, 13 | `user_agent` TEXT, 14 | `uri` TEXT, 15 | `rule_name` TEXT, 16 | `reason` TEXT 17 | ); 18 | -------------------------------------------------------------------------------- /plugins/php-guard/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 7, 3 | "ps": "监控PHP-FPM运行状态,防止大批量出现502错误!", 4 | "shell": "install.sh", 5 | "name": "php-guard", 6 | "title": "PHP守护", 7 | "versions": "1.0", 8 | "updates": "1.0", 9 | "tip": "soft", 10 | "checks": "server/php-guard", 11 | "path": "server/php-guard", 12 | "display": 1, 13 | "author": "midoks", 14 | "date": "2019-03-01", 15 | "home": "https://github.com/midoks", 16 | "type": "语言解释器", 17 | "pid": "1" 18 | } -------------------------------------------------------------------------------- /plugins/xhprof/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "title":"xhprof", 3 | "tip":"soft", 4 | "name":"xhprof", 5 | "type":"运行环境", 6 | "ps":"PHP性能瓶颈查找工具", 7 | "to_ver":["1.0"], 8 | "versions":["1.0"], 9 | "updates":["1.0"], 10 | "install_pre_inspection":true, 11 | "shell":"install.sh", 12 | "checks":"server/xhprof", 13 | "path": "server/xhprof", 14 | "author":"midoks", 15 | "home":"http://pecl.php.net/package/xhprof", 16 | "date":"2020-07-12", 17 | "pid": "2" 18 | } -------------------------------------------------------------------------------- /plugins/backup_ftp/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "title":"FTP存储空间", 3 | "hook":["backup"], 4 | "tip":"soft", 5 | "name":"backup_ftp", 6 | "type":"运行环境", 7 | "ps":"将网站或数据库打包备份到FTP存储空间", 8 | "versions":["1.0"], 9 | "install_pre_inspection":false, 10 | "shell":"install.sh", 11 | "checks":"server/backup_ftp", 12 | "path": "server/backup_ftp", 13 | "author":"midoks", 14 | "home":"https://github.com/midoks/mdserver-web", 15 | "date":"2022-10-23", 16 | "pid": "4" 17 | } -------------------------------------------------------------------------------- /plugins/mosquitto/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 999, 3 | "ps": "MQTT是一个消息队列遥测传输软件", 4 | "name": "mosquitto", 5 | "title": "mosquitto", 6 | "shell": "install.sh", 7 | "versions":["2.0.18"], 8 | "updates":["2.0.18"], 9 | "tip": "soft", 10 | "checks": "server/mosquitto", 11 | "path": "server/mosquitto", 12 | "display": 1, 13 | "author": "midoks", 14 | "date": "2023-09-28", 15 | "home": "https://mosquitto.org", 16 | "type": "soft", 17 | "pid": "4" 18 | } 19 | -------------------------------------------------------------------------------- /plugins/imail/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 7, 3 | "ps": "[DEV]简单邮件服务", 4 | "name": "imail", 5 | "title": "邮件服务", 6 | "shell": "install.sh", 7 | "versions":["0.0.19"], 8 | "updates":["0.0.19"], 9 | "tip": "soft", 10 | "checks": "server/imail", 11 | "path": "server/imail", 12 | "display": 1, 13 | "author": "midoks", 14 | "date": "2022-09-26", 15 | "home": "https://github.com/midoks/mdserver-web", 16 | "type": 0, 17 | "pid": "5" 18 | } -------------------------------------------------------------------------------- /plugins/supervisor/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 7, 3 | "ps": "一个Python开发的通用的进程管理程序", 4 | "name": "supervisor", 5 | "title": "supervisor", 6 | "shell": "install.sh", 7 | "versions":["1.0"], 8 | "updates":["1.0"], 9 | "tip": "soft", 10 | "checks": "server/supervisor", 11 | "path": "server/supervisor", 12 | "display": 1, 13 | "author": "python", 14 | "date": "2022-06-15", 15 | "home": "https://pypi.org/project/supervisor/", 16 | "type": 0, 17 | "pid": "4" 18 | } -------------------------------------------------------------------------------- /plugins/system_safe/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 1, 3 | "ps": "提供灵活的系统加固功能,防止系统被植入木马,支持服务器日志审计功能", 4 | "name": "system_safe", 5 | "title": "系统加固", 6 | "shell": "install.sh", 7 | "versions":["1.0"], 8 | "updates":["1.0"], 9 | "tip": "soft", 10 | "icon":"ico.png", 11 | "checks": "server/system_safe", 12 | "path": "server/system_safe", 13 | "display": 1, 14 | "author": "midoks", 15 | "date": "2022-01-12", 16 | "home": "", 17 | "type": 0, 18 | "pid": "4" 19 | 20 | } -------------------------------------------------------------------------------- /plugins/system_safe/init.d/system_safe.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=system_safe server daemon 3 | After=network.target 4 | 5 | [Service] 6 | Type=forking 7 | ExecStart={$SERVER_PATH}/init.d/system_safe start 8 | ExecStop={$SERVER_PATH}/init.d/system_safe stop 9 | ExecReload={$SERVER_PATH}/init.d/system_safe reload 10 | ExecRestart={$SERVER_PATH}/init.d/system_safe restart 11 | KillMode=process 12 | Restart=on-failure 13 | 14 | [Install] 15 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /plugins/docker/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 7, 3 | "ps": "Docker是一个开源的应用容器引擎", 4 | "name": "docker", 5 | "title": "Docker", 6 | "shell": "install.sh", 7 | "versions":["1.0"], 8 | "updates":["1.0"], 9 | "tip": "soft", 10 | "checks": "server/docker", 11 | "path": "server/docker", 12 | "display": 1, 13 | "author": "Zend", 14 | "date": "2017-04-01", 15 | "home": "https://docker.io", 16 | "doc1":"https://docker-py.readthedocs.io/", 17 | "type": 0, 18 | "pid": "2" 19 | } -------------------------------------------------------------------------------- /plugins/keepalived/scripts/chk.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # 计划任务,恢复后,可自动拉起keepalived 4 | # bash {$SERVER_PATH}/keepalived/scripts/chk.sh mysql 5 | 6 | cd {$SERVER_PATH}/keepalived 7 | 8 | # check script bash 9 | curPath=`pwd` 10 | rootPath=$(dirname "$curPath") 11 | 12 | SOFT=$1 13 | 14 | if [ "$SOFT" == "mysql" ];then 15 | bash ${rootPath}/keepalived/scripts/chk_mysql.sh > ${rootPath}/keepalived/keepalived.log 16 | else 17 | echo "you should use [chk.sh mysql] exp ." 18 | fi -------------------------------------------------------------------------------- /plugins/gitea/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "ps": "Gitea是一个开源社区驱动的轻量级代码托管解决方案。", 3 | "name": "gitea", 4 | "title": "Gitea", 5 | "versions": ["1.17.2","1.18.5"], 6 | "tip": "soft", 7 | "install_pre_inspection":false, 8 | "uninstall_pre_inspection":true, 9 | "checks": "server/gitea", 10 | "path":"server/gitea", 11 | "author": "gitea", 12 | "date": "2022-10-03", 13 | "home": "https://dl.gitea.io/", 14 | "type": "Git服务器", 15 | "shell": "install.sh", 16 | "pid": "3", 17 | "sort": 7 18 | } -------------------------------------------------------------------------------- /plugins/haproxy/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 7, 3 | "ps": "可靠、高性能的TCP/HTTP负载平衡器", 4 | "name": "haproxy", 5 | "title": "haproxy", 6 | "shell": "install.sh", 7 | "versions":["2.6"], 8 | "updates":["2.6"], 9 | "tip": "soft", 10 | "checks": "server/haproxy", 11 | "path": "server/haproxy", 12 | "display": 1, 13 | "author": "midoks", 14 | "date": "2022-08-26", 15 | "home": "https://www.haproxy.org/", 16 | "doc1": "https://www.haproxy.org/", 17 | "type": 0, 18 | "pid": "4" 19 | } -------------------------------------------------------------------------------- /plugins/keepalived/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 7, 3 | "ps": "[内网]优秀的高可用软件", 4 | "name": "keepalived", 5 | "title": "keepalived", 6 | "shell": "install.sh", 7 | "versions":["2.2.8"], 8 | "tip": "soft", 9 | "checks": "server/keepalived", 10 | "path": "server/keepalived", 11 | "display": 1, 12 | "author": "keepalived", 13 | "date": "2023-10-22", 14 | "home": "https://keepalived.org/download.html", 15 | "type": "soft", 16 | "pid": "4" 17 | } 18 | -------------------------------------------------------------------------------- /plugins/phpmyadmin/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "title":"phpMyAdmin", 3 | "tip":"soft", 4 | "name":"phpmyadmin", 5 | "type":"运行环境", 6 | "ps":"著名Web端MySQL管理工具", 7 | "to_ver":["4.8.4"], 8 | "versions":["4.4.15","4.9.10","5.2.0"], 9 | "updates":["4.4.15","4.9.10","5.2.0"], 10 | "shell":"install.sh", 11 | "checks":"server/phpmyadmin", 12 | "path": "server/phpmyadmin", 13 | "author":"phpMyAdmin", 14 | "home":"https://www.phpmyadmin.net/", 15 | "date":"2017-11-24", 16 | "pid": "2" 17 | } -------------------------------------------------------------------------------- /plugins/mongodb/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 7, 3 | "ps": "一个高性能的NOSQL数据库", 4 | "name": "mongodb", 5 | "title": "Mongodb", 6 | "shell": "install.sh", 7 | "install_pre_inspection":true, 8 | "versions":["4.4","5.0","6.0","7.0"], 9 | "tip": "soft", 10 | "checks": "server/mongodb", 11 | "path": "server/mongodb", 12 | "display": 1, 13 | "author": "mongodb", 14 | "date": "2021-11-23", 15 | "home": "https://www.mongodb.com/docs/v4.4/installation/", 16 | "type": 0, 17 | "pid": "2" 18 | } -------------------------------------------------------------------------------- /plugins/memcached/init.d/memcached.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Free & open source, high-performance, distributed memory object caching system. 3 | After=network.target 4 | 5 | [Service] 6 | Type=forking 7 | EnvironmentFile=-{$SERVER_PATH}/memcached/memcached.env 8 | ExecStart={$SERVER_PATH}/memcached/bin/memcached -d -p $PORT -u $USER -m $CACHESIZE -c $MAXCONN $OPTIONS 9 | ExecReload=/bin/kill -USR2 $MAINPID 10 | Restart=on-failure 11 | 12 | [Install] 13 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /plugins/tamper_proof_py/init.d/tamper_proof_py.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=tamper_proof_py server daemon 3 | After=network.target 4 | 5 | [Service] 6 | Type=forking 7 | ExecStart={$SERVER_PATH}/init.d/tamper_proof_py start 8 | ExecStop={$SERVER_PATH}/init.d/tamper_proof_py stop 9 | ExecReload={$SERVER_PATH}/init.d/tamper_proof_py reload 10 | ExecRestart={$SERVER_PATH}/init.d/tamper_proof_py restart 11 | KillMode=process 12 | Restart=on-failure 13 | 14 | [Install] 15 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /plugins/lvs/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 7, 3 | "ps": "[内网]LVS超强负载均衡,通过ipvsadm管理[暂时不可用]", 4 | "name": "lvs", 5 | "title": "LVS", 6 | "shell": "install.sh", 7 | "versions":["1.0"], 8 | "updates":["1.0"], 9 | "tip": "soft", 10 | "checks": "server/lvs", 11 | "path": "server/lvs", 12 | "display": 1, 13 | "author": "midoks", 14 | "date": "2023-11-17", 15 | "home": "http://www.linuxvirtualserver.org/", 16 | "type": 0, 17 | "pid": "4" 18 | } -------------------------------------------------------------------------------- /plugins/mysql-yum/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "hook":["database"], 3 | "title":"MySQL[YUM]", 4 | "tip":"soft", 5 | "name":"mysql-yum", 6 | "type":"运行环境", 7 | "ps":"一种关系数据库管理系统[centos](极速安装)", 8 | "todo_versions":["5.7","8.0"], 9 | "versions":["5.7","8.0"], 10 | "shell":"install.sh", 11 | "install_pre_inspection":true, 12 | "checks":"server/mysql-yum", 13 | "path":"server/mysql-yum", 14 | "author":"mysql", 15 | "home":"https://dev.mysql.com/downloads/mysql", 16 | "date":"2022-06-29", 17 | "pid": "6" 18 | } -------------------------------------------------------------------------------- /plugins/redis/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 7, 3 | "ps": "一个高性能的KV数据库", 4 | "name": "redis", 5 | "title": "Redis", 6 | "shell": "install.sh", 7 | "versions":["4.0.11","5.0.8","6.0.4","6.2.7","7.0.12","7.2.2"], 8 | "updates":["4.0.11","5.0.8","6.0.4","6.2.7","7.0.12","7.2.2"], 9 | "tip": "soft", 10 | "checks": "server/redis", 11 | "path": "server/redis", 12 | "display": 1, 13 | "author": "Zend", 14 | "date": "2017-04-01", 15 | "home": "https://redis.io", 16 | "type": 0, 17 | "pid": "2" 18 | } 19 | -------------------------------------------------------------------------------- /plugins/openresty/init.d/openresty.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=OpenResty is a dynamic web platform based on NGINX and LuaJIT. 3 | After=network.target 4 | 5 | [Service] 6 | Type=forking 7 | ExecStart={$SERVER_PATH}/openresty/bin/openresty -c {$SERVER_PATH}/openresty/nginx/conf/nginx.conf 8 | ExecStop={$SERVER_PATH}/openresty/bin/openresty -s stop 9 | ExecReload={$SERVER_PATH}/openresty/bin/openresty -s reload 10 | KillMode=process 11 | Restart=on-failure 12 | 13 | [Install] 14 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /plugins/postgresql/init.d/postgresql.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=PostgreSQL: a powerful open source database 3 | After=network.target 4 | 5 | [Service] 6 | Type=forking 7 | User=postgres 8 | Group=postgres 9 | WorkingDirectory={$APP_PATH} 10 | ExecStart={$APP_PATH}/bin/pg_ctl start -D {$APP_PATH}/data 11 | ExecReload={$APP_PATH}/bin/pg_ctl restart -D {$APP_PATH}/data 12 | ExecStop={$APP_PATH}/bin/pg_ctl stop -D {$APP_PATH}/data 13 | PrivateTmp=false 14 | 15 | [Install] 16 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /plugins/gdrive/credentials_bak.json: -------------------------------------------------------------------------------- 1 | { 2 | "web": { 3 | "client_id": "540181629246-1horo9i4htamdbhiqar9rcbq33bqe2ob.apps.googleusercontent.com", 4 | "project_id": "plated-inn-369901", 5 | "auth_uri": "https://accounts.google.com/o/oauth2/auth", 6 | "token_uri": "https://oauth2.googleapis.com/token", 7 | "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", 8 | "client_secret": "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", 9 | "redirect_uris": ["https://drive.aapanel.com"] 10 | } 11 | } -------------------------------------------------------------------------------- /plugins/openresty/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "title":"OpenResty", 3 | "tip":"soft", 4 | "name":"openresty", 5 | "type":"其他插件", 6 | "ps":"轻量级,占有内存少,并发能力强", 7 | "shell":"install.sh", 8 | "install_pre_inspection":true, 9 | "checks":"server/openresty", 10 | "path":"server/openresty", 11 | "author":"agentzh", 12 | "home":"http://openresty.org", 13 | "date":"2017-11-24", 14 | "pid": "1", 15 | "versions": ["1.17.8.2","1.19.3.1","1.21.4.2","1.21.4.3"], 16 | "updates": ["1.17.8.2","1.19.3.1","1.21.4.2","1.21.4.3"] 17 | } -------------------------------------------------------------------------------- /plugins/php-yum/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 7, 3 | "ps": "PHP是世界上最好的编程语言(极速安装)", 4 | "shell": "install.sh", 5 | "name": "php-yum", 6 | "title": "PHP[YUM]", 7 | "coexist": true, 8 | "versions": ["74","80","81","82","83"], 9 | "install_pre_inspection":true, 10 | "tip": "soft", 11 | "checks": "server/php-yum/VERSION", 12 | "path": "server/php-yum/VERSION", 13 | "display": 1, 14 | "author": "Zend", 15 | "date": "2022-07-07", 16 | "home": "https://www.php.net", 17 | "type": "PHP语言解释器", 18 | "pid": "6" 19 | } -------------------------------------------------------------------------------- /plugins/postgresql/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "hook":["database"], 3 | "title":"PostgreSQL", 4 | "tip":"soft", 5 | "name":"postgresql", 6 | "type":"运行环境", 7 | "ps":"[DEV]功能强大的开源数据库", 8 | "coexist": false, 9 | "install_pre_inspection":true, 10 | "uninstall_pre_inspection":true, 11 | "versions":["14.4"], 12 | "shell":"install.sh", 13 | "checks":"server/postgresql", 14 | "path":"server/postgresql", 15 | "author":"postgresql", 16 | "home":"https://www.postgresql.org/", 17 | "date":"2022-08-07", 18 | "pid": "2" 19 | } -------------------------------------------------------------------------------- /rewrite/nginx/nezha.conf: -------------------------------------------------------------------------------- 1 | #PROXY-START/ 2 | # root /www/server/nezha/dashboard/resource; 3 | location / { 4 | proxy_pass http://127.0.0.1:9527; 5 | proxy_set_header Host $http_host; 6 | proxy_set_header Upgrade $http_upgrade; 7 | } 8 | location ~ ^/(ws|terminal/.+)$ { 9 | proxy_pass http://127.0.0.1:9527; 10 | proxy_http_version 1.1; 11 | proxy_set_header Upgrade $http_upgrade; 12 | proxy_set_header Connection "Upgrade"; 13 | proxy_set_header Host $http_host; 14 | } 15 | #PROXY-END/ -------------------------------------------------------------------------------- /scripts/init.d/mw.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=mw-panel daemon 3 | After=network.target 4 | 5 | [Service] 6 | Type=simple 7 | WorkingDirectory={$SERVER_PATH} 8 | EnvironmentFile={$SERVER_PATH}/scripts/init.d/service.sh 9 | ExecStart=gunicorn -c setting.py app:app 10 | ExecStop=kill -HUP $MAINID 11 | ExecReload=kill -HUP $MAINID 12 | KillMode=process 13 | Restart=on-failure 14 | 15 | [Timer] 16 | # 每日凌晨点重启 17 | OnCalendar=*-*-* 03:30:00 18 | Unit=mw.service 19 | 20 | [Install] 21 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /plugins/mysql-apt/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "hook":["database"], 3 | "title":"MySQL[APT]", 4 | "tip":"soft", 5 | "name":"mysql-apt", 6 | "type":"运行环境", 7 | "ps":"一种关系数据库管理系统[debian,ubuntu](极速安装)", 8 | "todo_versions":["5.7","8.0"], 9 | "versions":["5.7","8.0","8.2"], 10 | "shell":"install.sh", 11 | "install_pre_inspection":true, 12 | "checks":"server/mysql-apt", 13 | "path":"server/mysql-apt", 14 | "author":"mysql", 15 | "home":"https://dev.mysql.com/downloads/mysql", 16 | "date":"2022-06-29", 17 | "pid": "6" 18 | } -------------------------------------------------------------------------------- /route/templates/default/path.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 安全入口校验失败 7 | 8 | 9 |

请使用正确的入口登录面板

10 |

错误原因:当前新安装的已经开启了安全入口登录,新装机器都会随机一个8位字符的安全入口名称,亦可以在面板设置处修改,如您没记录或不记得了,可以使用以下方式解决

11 |

解决方法:在SSH终端输入以下一种命令来解决

12 |

1.查看面板入口:mw default

13 |

2.关闭安全入口:mw close_admin_path

14 |

注意:【关闭安全入口】将使您的面板登录地址被直接暴露在互联网上,非常危险,请谨慎操作

15 | 16 | -------------------------------------------------------------------------------- /.github/workflows/sync2gitee.yml: -------------------------------------------------------------------------------- 1 | name: sync2gitee 2 | on: [push] 3 | 4 | jobs: 5 | repo-sync: 6 | runs-on: ubuntu-latest 7 | steps: 8 | - name: Mirror the Github organization repos to Gitee. 9 | uses: Yikun/hub-mirror-action@master 10 | with: 11 | src: 'github/midoks' 12 | dst: 'gitee/midoks' 13 | dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} 14 | dst_token: ${{ secrets.GITEE_TOKEN }} 15 | static_list: "mdserver-web" 16 | force_update: true -------------------------------------------------------------------------------- /plugins/migration_api/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 7, 3 | "ps": "[潜龙勿用]一键迁移,仅网站数据和MySQL数据(仅支持源码安装软件)", 4 | "name": "migration_api", 5 | "title": "一键迁移API", 6 | "shell": "install.sh", 7 | "versions":["1.0"], 8 | "updates":["1.0"], 9 | "tip": "soft", 10 | "checks": "server/migration_api", 11 | "path":"server/migration_api", 12 | "display": 1, 13 | "author": "midoks", 14 | "date": "2022-01-17", 15 | "home": "https://github.com/midoks/mdserver-web", 16 | "type": 0, 17 | "pid": "4" 18 | } -------------------------------------------------------------------------------- /plugins/msonedrive/credentials.json: -------------------------------------------------------------------------------- 1 | { 2 | "onedrive-international": { 3 | "client_id": "08125e6b-6502-4ac9-9548-ad682f00848d", 4 | "client_secret": "0WA8Q~sZkZFZKv50ryP4ux~.fpVtbHw7BuTZmbQB", 5 | "authority": "https://login.microsoftonline.com/common", 6 | "token_endpoint": "/oauth2/v2.0/token", 7 | "authorize_endpoint": "/oauth2/v2.0/authorize", 8 | "scopes": "offline_access Files.ReadWrite.All User.Read", 9 | "redirect_uri": "http://localhost", 10 | "api_uri": "https://graph.microsoft.com/v1.0" 11 | } 12 | } -------------------------------------------------------------------------------- /plugins/gdrive/credentials.json: -------------------------------------------------------------------------------- 1 | { 2 | "web": { 3 | "client_id": "226011946234-d3e1vashgag64utjedu1ljt9u39ncrpq.apps.googleusercontent.com", 4 | "project_id": "light-willow-341609", 5 | "auth_uri": "https://accounts.google.com/o/oauth2/auth", 6 | "token_uri": "https://oauth2.googleapis.com/token", 7 | "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", 8 | "client_secret": "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", 9 | "redirect_uris": [ 10 | "https://drive.aapanel.com" 11 | ] 12 | } 13 | } -------------------------------------------------------------------------------- /plugins/haproxy/init.d/haproxy.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=he Reliable, High Performance TCP/HTTP Load Balancer 3 | After=network.target 4 | 5 | [Service] 6 | Type=forking 7 | ExecStartPre={$SERVER_PATH}/haproxy/sbin/haproxy -c -f {$SERVER_PATH}/haproxy/haproxy.conf 8 | ExecStart={$SERVER_PATH}/haproxy/sbin/haproxy -D -f {$SERVER_PATH}/haproxy/haproxy.conf 9 | ExecReload={$SERVER_PATH}/haproxy/sbin/haproxy -f {$SERVER_PATH}/haproxy/haproxy.conf -c -q 10 | Restart=on-failure 11 | 12 | [Install] 13 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /plugins/php-apt/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 7, 3 | "ps": "PHP是世界上最好的编程语言(极速安装)", 4 | "shell": "install.sh", 5 | "name": "php-apt", 6 | "title": "PHP[APT]", 7 | "coexist": true, 8 | "versions": ["56","70","71","72","73","74","80","81","82","83"], 9 | "install_pre_inspection":true, 10 | "tip": "soft", 11 | "checks": "server/php-apt/VERSION", 12 | "path": "server/php-apt/VERSION", 13 | "display": 1, 14 | "author": "Zend", 15 | "date": "2022-07-07", 16 | "home": "https://www.php.net", 17 | "type": "PHP语言解释器", 18 | "pid": "6" 19 | } -------------------------------------------------------------------------------- /route/static/codemirror/addon/hint/show-hint.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px rgba(0,0,0,.2);border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:black;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:white} -------------------------------------------------------------------------------- /plugins/mariadb/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "hook":["database"], 3 | "title":"MariaDB", 4 | "tip":"soft", 5 | "name":"mariadb", 6 | "type":"运行环境", 7 | "ps":"一种关系数据库管理系统!", 8 | "uninstall_pre_inspection":true, 9 | "checks": "server/mariadb", 10 | "path": "server/mariadb", 11 | "versions":["10.6","10.7","10.8","10.9","10.11","11.0","11.1","11.2","11.3"], 12 | "shell":"install.sh", 13 | "checks":"server/mariadb", 14 | "path":"server/mariadb", 15 | "author":"mariadb", 16 | "home":"https://mariadb.org/", 17 | "date":"2022-07-12", 18 | "pid": "2" 19 | } -------------------------------------------------------------------------------- /plugins/openresty/conf/lua.conf: -------------------------------------------------------------------------------- 1 | lua_package_path "{$SERVER_PATH}/web_conf/nginx/lua/?.lua;{$SERVER_PATH}/openresty/lualib/?.lua;;"; 2 | lua_package_cpath "{$SERVER_PATH}/web_conf/nginx/lua/?.so;{$SERVER_PATH}/openresty/lualib/?.so;;"; 3 | 4 | lua_code_cache on; 5 | 6 | #init_by_lua_file 7 | init_by_lua_file {$SERVER_PATH}/web_conf/nginx/lua/empty.lua; 8 | 9 | #init_worker_by_lua 10 | init_worker_by_lua_file {$SERVER_PATH}/web_conf/nginx/lua/empty.lua; 11 | 12 | #access_by_lua_file 13 | access_by_lua_file {$SERVER_PATH}/web_conf/nginx/lua/empty.lua; -------------------------------------------------------------------------------- /plugins/sphinx/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 7, 3 | "ps": "简单高效的全文搜索引擎", 4 | "name": "sphinx", 5 | "title": "sphinx", 6 | "shell": "install.sh", 7 | "versions":["3.1.1"], 8 | "updates":["3.1.1"], 9 | "tip": "soft", 10 | "checks": "server/sphinx", 11 | "path": "server/sphinx", 12 | "display": 1, 13 | "author": "midoks", 14 | "date": "2017-04-01", 15 | "home": "http://sphinxsearch.com/", 16 | "doc1": "http://sphinxsearch.com/docs/sphinx3.html", 17 | "doc2": "http://sphinxsearch.com/docs/manual-2.3.2.html", 18 | "type": 0, 19 | "pid": "2" 20 | } -------------------------------------------------------------------------------- /plugins/tgbot/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 7, 3 | "ps": "简单Telegram机器人", 4 | "name": "tgbot", 5 | "title": "tgbot", 6 | "shell": "install.sh", 7 | "versions":["1.0"], 8 | "tip": "soft", 9 | "checks": "server/tgbot", 10 | "path": "server/tgbot", 11 | "install_pre_inspection":true, 12 | "uninstall_pre_inspection":true, 13 | "display": 1, 14 | "author": "midoks", 15 | "date": "2023-03-06", 16 | "home": "https://core.telegram.org/bots/api", 17 | "depend_doc1":"https://github.com/eternnoir/pyTelegramBotAPI", 18 | "type": 0, 19 | "pid": "5" 20 | } -------------------------------------------------------------------------------- /plugins/op_waf/t/ngx_demo.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # cd /www/server/mdserver-web/plugins/op_waf/t && sh ngx_demo.sh 4 | # cd /www/wwwroot/dev156.cachecha.com && sh ngx_demo.sh 5 | 6 | 7 | # only openresty 8 | # pid=`ps -ef|grep openresty | grep -v grep | awk '{print $2}'` 9 | # perf record -F 99 -p $pid -g -- sleep 60 10 | 11 | 12 | #全部 13 | perf record -F 99 -g -a -- sleep 60 14 | 15 | 16 | perf script -i perf.data &> perf.unfold 17 | /opt/FlameGraph/stackcollapse-perf.pl perf.unfold &> perf.folded 18 | /opt/FlameGraph/flamegraph.pl perf.folded > perf.svg -------------------------------------------------------------------------------- /plugins/php/init.d/php.service.52.tpl: -------------------------------------------------------------------------------- 1 | # It's not recommended to modify this file in-place, because it 2 | # will be overwritten during upgrades. If you want to customize, 3 | # the best way is to use the "systemctl edit" command. 4 | 5 | [Unit] 6 | Description=The PHP {$VERSION} FastCGI Process Manager 7 | After=network.target 8 | 9 | [Service] 10 | Type=forking 11 | ExecStart={$SERVER_PATH}/php/init.d/php{$VERSION} start 12 | ExecStop={$SERVER_PATH}/php/init.d/php{$VERSION} stop 13 | PrivateTmp=false 14 | 15 | [Install] 16 | WantedBy=multi-user.target 17 | -------------------------------------------------------------------------------- /plugins/op_load_balance/lua/health_check.lua.tpl: -------------------------------------------------------------------------------- 1 | local hc = require "resty.upstream.healthcheck" 2 | local ok, err = hc.spawn_checker { 3 | shm = "healthcheck", 4 | type = "http", 5 | upstream = "{$UPSTREAM_NAME}", 6 | http_req = "GET / HTTP/1.0\r\nHost: {$UPSTREAM_NAME}\r\n\r\n", 7 | interval = 2000, 8 | timeout = 6000, 9 | fall = 3, 10 | rise = 2, 11 | valid_statuses = {200, 302}, 12 | concurrency = 20, 13 | } 14 | 15 | if not ok then 16 | ngx.log(ngx.ERR, "=======> load balance health checker error: ", err) 17 | return 18 | end -------------------------------------------------------------------------------- /plugins/php/conf/www.conf: -------------------------------------------------------------------------------- 1 | [www] 2 | user = {$PHP_USER} 3 | group = {$PHP_GROUP} 4 | 5 | listen = /tmp/php-cgi-{$PHP_VERSION}.sock 6 | listen.owner = {$PHP_USER} 7 | listen.group = {$PHP_GROUP} 8 | listen.backlog = 4096 9 | 10 | pm = dynamic 11 | pm.max_children = 50 12 | pm.start_servers = 5 13 | pm.min_spare_servers = 5 14 | pm.max_spare_servers = 35 15 | pm.status_path = /phpfpm_status_{$PHP_VERSION} 16 | pm.max_requests = 1000 17 | request_terminate_timeout = 30 18 | request_slowlog_timeout = 10 19 | slowlog = {$SERVER_PATH}/php/{$PHP_VERSION}/var/log/www-slow.log -------------------------------------------------------------------------------- /plugins/tgclient/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 7, 3 | "ps": "简单Telegram客服端管理", 4 | "name": "tgclient", 5 | "title": "tgclient", 6 | "shell": "install.sh", 7 | "versions":["1.1"], 8 | "tip": "soft", 9 | "checks": "server/tgclient", 10 | "path": "server/tgclient", 11 | "install_pre_inspection":true, 12 | "uninstall_pre_inspection":true, 13 | "display": 1, 14 | "author": "midoks", 15 | "date": "2023-03-06", 16 | "home": "https://my.telegram.org/apps", 17 | "depend_doc1":"https://docs.telethon.dev/en/stable/basic/installation.html", 18 | "type": 0, 19 | "pid": "5" 20 | } -------------------------------------------------------------------------------- /route/static/codemirror/addon/dialog/dialog.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-dialog{position:absolute;left:0;right:0;background:inherit;z-index:15;padding:.4em .8em;overflow:hidden;color:inherit}.CodeMirror-dialog-top{border-bottom:1px solid #eee;top:0}.CodeMirror-dialog-bottom{border-top:1px solid #eee;bottom:0}.CodeMirror-dialog input{border:0;outline:0;background:transparent;width:20em;color:inherit;font-family:monospace}.CodeMirror-dialog button{font-size:70%}.Dialog-close{color:#111;float:right;font-family:Arial;font-size:16px;height:30px;line-height:30px;text-align:center;width:30px;cursor:pointer} -------------------------------------------------------------------------------- /route/static/language/zh-cn.js: -------------------------------------------------------------------------------- 1 | var BT_MSG = { 2 | "ERROR":"操作失败", 3 | "SUCCESS":"操作成功", 4 | "ADD_SUCCESS":"添加成功", 5 | "ADD_ERROR":"添加失败", 6 | "DEL_SUCCESS":"删除成功", 7 | "DEL_ERROR":"删除失败", 8 | "SET_SUCCESS":"设置成功", 9 | "SET_ERROR":"设置失败", 10 | "PATH_ERROR":"不能以系统关键目录作为站点目录", 11 | "SITE_ADD_SUCCESS":"成功创建站点!", 12 | "SITE_ADD_EXISTS":"您添加的站点已存在!", 13 | "SITE_ADD_PORT":"端口范围不合法", 14 | "SITE_DEL_SUCCESS":"站点删除成功!", 15 | "SITE_ADD_DOMAIN":"域名添加成功!", 16 | "SITE_ADD_EXISTS":"指定域名已绑定过!", 17 | "SITE_ADD_EXISTS":"指定域名已绑定过!", 18 | "SITE_ADD_BINDING":"域名和子目录名称不能为空!" 19 | } -------------------------------------------------------------------------------- /plugins/gdrive/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "hook":["backup"], 3 | "id":998, 4 | "title":"谷歌云网盘", 5 | "tip":"lib", 6 | "name":"gdrive", 7 | "type":"扩展", 8 | "ps":"备份你的数据到谷歌云网盘", 9 | "versions":"2.0", 10 | "shell":"install.sh", 11 | "checks": "server/gdrive", 12 | "path":"server/gdrive", 13 | "author":"google", 14 | "home":"https://drive.google.com/", 15 | "api_doc":"https://developers.google.com/drive/api/guides/about-sdk?hl=zh_CN", 16 | "api_doc2":"https://developers.google.cn/drive/api/reference/rest/v3/comments/list?hl=zh-cn", 17 | "date":"2022-06-26", 18 | "pid":"5" 19 | } -------------------------------------------------------------------------------- /plugins/gitea/init.d/gitea.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Gitea (Git with a cup of tea) 3 | After=syslog.target 4 | After=network.target 5 | 6 | [Service] 7 | RestartSec=2s 8 | Type=simple 9 | User=www 10 | Group=www 11 | WorkingDirectory={$SERVER_PATH}/gitea 12 | ExecStart={$SERVER_PATH}/gitea/gitea web 13 | Restart=always 14 | Environment=USER=www HOME=/home/www GITEA_WORK_DIR={$SERVER_PATH}/gitea 15 | RemainAfterExit=yes 16 | #AmbientCapabilities=CAP_NET_BIND_SERVICE 17 | #CapabilityBoundingSet=CAP_NET_BIND_SERVICE 18 | 19 | [Install] 20 | WantedBy=multi-user.target 21 | -------------------------------------------------------------------------------- /data/json/type.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "title":"全部", 4 | "type":0, 5 | "ps":"" 6 | }, 7 | { 8 | "title":"已安装", 9 | "type":-1, 10 | "ps":"" 11 | }, 12 | { 13 | "title":"运行环境", 14 | "type":1, 15 | "ps":"" 16 | }, 17 | { 18 | "title":"数据软件", 19 | "type":2, 20 | "ps":"" 21 | }, 22 | { 23 | "title":"代码管理", 24 | "type":3, 25 | "ps":"" 26 | }, 27 | { 28 | "title":"系统工具", 29 | "type":4, 30 | "ps":"" 31 | }, 32 | { 33 | "title":"其他插件", 34 | "type":5, 35 | "ps":"" 36 | }, 37 | { 38 | "title":"辅助插件", 39 | "type":6, 40 | "ps":"" 41 | } 42 | ] -------------------------------------------------------------------------------- /route/static/codemirror/addon/edit/trailingspace.js: -------------------------------------------------------------------------------- 1 | (function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){a.defineOption("showTrailingSpace",false,function(b,d,c){if(c==a.Init){c=false}if(c&&!d){b.removeOverlay("trailingspace")}else{if(!c&&d){b.addOverlay({token:function(g){for(var e=g.string.length,f=e;f&&/\s/.test(g.string.charAt(f-1));--f){}if(f>g.pos){g.pos=f;return null}g.pos=e;return"trailingspace"},name:"trailingspace"})}}})}); -------------------------------------------------------------------------------- /plugins/imail/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin 3 | export PATH 4 | 5 | curPath=`pwd` 6 | rootPath=$(dirname "$curPath") 7 | rootPath=$(dirname "$rootPath") 8 | serverPath=$(dirname "$rootPath") 9 | 10 | install_tmp=${rootPath}/tmp/mw_install.pl 11 | 12 | action=$1 13 | type=$2 14 | 15 | if [ "${2}" == "" ];then 16 | echo '缺少安装脚本...' > $install_tmp 17 | exit 0 18 | fi 19 | 20 | if [ ! -d $curPath/versions/$2 ];then 21 | echo '缺少安装脚本2...' > $install_tmp 22 | exit 0 23 | fi 24 | 25 | sh -x $curPath/versions/$2/install.sh $1 26 | -------------------------------------------------------------------------------- /plugins/swap/index.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

服务

5 |

自启动

6 |

配置调整

7 |

说明

8 |
9 |
10 |
11 |
12 |
13 |
14 | 15 | -------------------------------------------------------------------------------- /rewrite/nginx/seacms.conf: -------------------------------------------------------------------------------- 1 | location / { 2 | rewrite ^/frim/index(.+?)\.html$ /list/index.php?$1 last; 3 | rewrite ^/movie/index(.+?)\.html$ /detail/index.php?$1 last; 4 | rewrite ^/play/([0-9]+)-([0-9]+)-([0-9]+)\.html$ /video/index.php?$1-$2-$3 last; 5 | rewrite ^/topic/index(.+?)\.html$ /topic/index.php?$1 last; 6 | rewrite ^/topiclist/index(.+?).html$ /topiclist/index.php?$1 last; 7 | rewrite ^/index\.html$ index.php permanent; 8 | rewrite ^/news\.html$ news/ permanent; 9 | rewrite ^/part/index(.+?)\.html$ /articlelist/index.php?$1 last; 10 | rewrite ^/article/index(.+?)\.html$ /article/index.php?$1 last; 11 | } -------------------------------------------------------------------------------- /scripts/pick.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin:/opt/homebrew/bin 3 | 4 | curPath=`pwd` 5 | rootPath=$(dirname "$curPath") 6 | 7 | 8 | #----------------------------- 代码打包 -------------------------# 9 | 10 | echo $rootPath 11 | cd $rootPath 12 | rm -rf ./*.pyc 13 | rm -rf ./*/*.pyc 14 | 15 | startTime=`date +%s` 16 | 17 | zip -r -q -o mdserver-web.zip ./ -x@$curPath/pick_filter.txt 18 | 19 | 20 | 21 | mv mdserver-web.zip $rootPath/scripts 22 | 23 | endTime=`date +%s` 24 | ((outTime=($endTime-$startTime))) 25 | echo -e "Time consumed:\033[32m $outTime \033[0mSec!" -------------------------------------------------------------------------------- /plugins/haproxy/index.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

服务

5 |

自启动

6 |

配置修改

7 |

运行日志

8 |
9 |
10 |
11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /plugins/mariadb/init.d/mariadb.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=MariaDB Server: The open source relational database 3 | Documentation=https://mariadb.org/download/?t=mariadb 4 | After=network.service 5 | After=syslog.target 6 | 7 | [Service] 8 | User=mysql 9 | Group=mysql 10 | Type=simple 11 | ExecStart={$SERVER_PATH}/mariadb/bin/mysqld --defaults-file={$SERVER_PATH}/mariadb/etc/my.cnf 12 | ExecReload=/bin/kill -USR2 $MAINPID 13 | PermissionsStartOnly=true 14 | LimitNOFILE=5000 15 | Restart=on-failure 16 | RestartSec=10 17 | RestartPreventExitStatus=1 18 | PrivateTmp=false 19 | 20 | 21 | [Install] 22 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /data/tpl/nginx_panel.conf: -------------------------------------------------------------------------------- 1 | server 2 | { 3 | listen {$PORT}; 4 | listen [::]:{$PORT}; 5 | 6 | server_name {$SERVER_NAME}; 7 | index index.php index.html index.htm default.php default.htm default.html; 8 | 9 | #SSL-START 10 | #error_page 404/404.html; 11 | #SSL-END 12 | 13 | #PROXY-START 14 | location ^~ / { 15 | proxy_pass http://0.0.0.0:{$PANAL_PORT}/; 16 | proxy_http_version 1.1; 17 | proxy_set_header Upgrade $http_upgrade; 18 | proxy_set_header Connection 'upgrade'; 19 | } 20 | #PROXY-END 21 | 22 | error_log {$LOGPATH}/{$SERVER_NAME}.error.log; 23 | } -------------------------------------------------------------------------------- /plugins/lvs/index.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

服务

5 |

自启动

6 |

配置修改

7 | 8 |
9 |
10 |
11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /plugins/php-yum/versions/lib.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin 3 | export PATH 4 | 5 | curPath=`pwd` 6 | rootPath=$(dirname "$curPath") 7 | rootPath=$(dirname "$rootPath") 8 | rootPath=$(dirname "$rootPath") 9 | serverPath=$(dirname "$rootPath") 10 | 11 | version=$1 12 | action=$2 13 | 14 | if [ -f /lib/systemd/system/php${version}-php-fpm.service ];then 15 | systemctl ${action} php${version}-php-fpm 16 | elif [[ -f /usr/lib/systemd/system/php${version}-php-fpm.service ]]; then 17 | systemctl ${action} php${version}-php-fpm 18 | else 19 | $serverPath/php/init.d/php${version} ${action} 20 | fi -------------------------------------------------------------------------------- /plugins/postgresql/conf/pg_hba.conf: -------------------------------------------------------------------------------- 1 | # PostgreSQL Client Authentication Configuration File 2 | 3 | # TYPE DATABASE USER ADDRESS METHOD 4 | # "local" is for Unix domain socket connections only 5 | local all all trust 6 | host all all 0.0.0.0/0 md5 7 | host all all ::1/128 md5 8 | local replication all trust 9 | host replication all 0.0.0.0/0 md5 10 | host replication all ::1/128 md5 -------------------------------------------------------------------------------- /plugins/xhprof/conf/xhprof.conf: -------------------------------------------------------------------------------- 1 | server 2 | { 3 | listen 5858; 4 | server_name 127.0.0.1; 5 | index index.html index.htm index.php; 6 | root {$SERVER_PATH}/xhprof/xhprof_html; 7 | 8 | #error_page 404 /404.html; 9 | include {$SERVER_PATH}/web_conf/php/conf/enable-php-{$PHP_VER}.conf; 10 | 11 | location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ 12 | { 13 | expires 30d; 14 | } 15 | 16 | location ~ .*\.(js|css)?$ 17 | { 18 | expires 12h; 19 | } 20 | 21 | location ~ /\. 22 | { 23 | deny all; 24 | } 25 | 26 | access_log {$SERVER_PATH}/xhprof/access.log main; 27 | } -------------------------------------------------------------------------------- /plugins/imail/index.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

服务

5 |

自启动

6 |

配置文件

7 |

运行日志

8 |
9 |
10 |
11 |
12 |
13 |
14 | 15 | -------------------------------------------------------------------------------- /plugins/mosquitto/index.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 |

服务

6 |

自启动

7 |

配置修改

8 |
9 |
10 |
11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /plugins/mysql/init.d/mysql.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=MySQL Community Server 3 | Documentation=man:mysqld(8) 4 | Documentation=http://dev.mysql.com/doc/refman/en/using-systemd.html 5 | After=network.service 6 | After=syslog.target 7 | 8 | [Service] 9 | User=mysql 10 | Group=mysql 11 | Type=simple 12 | ExecStart={$SERVER_PATH}/mysql/bin/mysqld --defaults-file={$SERVER_PATH}/mysql/etc/my.cnf 13 | ExecReload=/bin/kill -USR2 $MAINPID 14 | TimeoutSec=0 15 | PermissionsStartOnly=true 16 | LimitNOFILE=5000 17 | Restart=on-failure 18 | RestartSec=10 19 | RestartPreventExitStatus=1 20 | PrivateTmp=false 21 | 22 | 23 | [Install] 24 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /plugins/php/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sort": 7, 3 | "ps": "PHP是世界上最好的编程语言", 4 | "shell": "install.sh", 5 | "name": "php", 6 | "title": "PHP", 7 | "coexist": true, 8 | "versions": ["53","54","55","56","70","71","72","73","74","80","81","82","83"], 9 | "updates": ["5.3.29","5.4.45","5.6.36","7.0.30","7.1.33","7.2.32","7.3.20","7.4.30","8.0.30","8.1.24","8.2.11","8.3.0"], 10 | "tip": "soft", 11 | "install_pre_inspection":true, 12 | "checks": "server/php/VERSION/bin/php", 13 | "path": "server/php/VERSION", 14 | "display": 1, 15 | "author": "Zend", 16 | "date": "2017-04-01", 17 | "home": "https://www.php.net", 18 | "type": "PHP语言解释器", 19 | "pid": "1" 20 | } -------------------------------------------------------------------------------- /plugins/op_waf/t/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin 3 | export PATH 4 | 5 | # apt -y install apache2-utils 6 | # yum -y install httpd-tools 7 | 8 | # ab -c 3000 -n 10000000 http://www.zzzvps.com/ 9 | # /cc https://www.zzzvps.com/ 120 10 | # ab -c 10 -n 1000 http://t1.cn/wp-admin/index.php 11 | # ab -c 1000 -n 1000000 http://dev156.cachecha.com/ 12 | 13 | curPath=`pwd` 14 | rootPath=$(dirname "$curPath") 15 | rootPath=$(dirname "$rootPath") 16 | rootPath=$(dirname "$rootPath") 17 | 18 | if [ -f ${rootPath}/bin/activate ];then 19 | source ${rootPath}/bin/activate 20 | fi 21 | 22 | python3 index.py 23 | -------------------------------------------------------------------------------- /plugins/pureftp/index.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

服务

5 |

自启动

6 |

配置修改

7 |

管理列表

8 |
9 | 10 |
11 |
12 |
13 |
14 | 15 |
16 | -------------------------------------------------------------------------------- /plugins/php-apt/versions/common/opcache.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin 3 | export PATH 4 | 5 | curPath=`pwd` 6 | rootPath=$(dirname "$curPath") 7 | rootPath=$(dirname "$rootPath") 8 | rootPath=$(dirname "$rootPath") 9 | rootPath=$(dirname "$rootPath") 10 | serverPath=$(dirname "$rootPath") 11 | sourcePath=${serverPath}/source/php 12 | 13 | actionType=$1 14 | version=$2 15 | 16 | sysName=`uname` 17 | LIBNAME=opcache 18 | 19 | if [ "$actionType" == 'install' ];then 20 | apt install -y php${version}-${LIBNAME} 21 | elif [ "$actionType" == 'uninstall' ];then 22 | echo 'cannot uninstall'>&2 23 | exit 1 24 | fi -------------------------------------------------------------------------------- /plugins/memcached/index.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

服务

5 |

自启动

6 |

配置文件

7 |

负载状态

8 |

性能调整

9 |
10 |
11 |
12 |
13 |
14 | 15 |
16 | -------------------------------------------------------------------------------- /rewrite/nginx/EmpireCMS.conf: -------------------------------------------------------------------------------- 1 | location / { 2 | rewrite ^([^\.]*)/listinfo-(.+?)-(.+?)\.html$ $1/e/action/ListInfo/index.php?classid=$2&page=$3 last; 3 | rewrite ^([^\.]*)/showinfo-(.+?)-(.+?)-(.+?)\.html$ $1/e/action/ShowInfo.php?classid=$2&id=$3&page=$4 last; 4 | rewrite ^([^\.]*)/infotype-(.+?)-(.+?)\.html$ $1/e/action/InfoType/index.php?ttid=$2&page=$3 last; 5 | rewrite ^([^\.]*)/tags-(.+?)-(.+?)\.html$ $1/e/tags/index.php?tagname=$2&page=$3 last; 6 | rewrite ^([^\.]*)/comment-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)\.html$ $1/e/pl/index\.php\?doaction=$2&classid=$3&id=$4&page=$5&myorder=$6&tempid=$7 last; 7 | if (!-e $request_filename) { 8 | return 404; 9 | } 10 | } -------------------------------------------------------------------------------- /scripts/plugin_compress.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ### 4 | ### 插件压缩 5 | ### 6 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin:/opt/homebrew/bin 7 | export PATH 8 | LANG=en_US.UTF-8 9 | is64bit=`getconf LONG_BIT` 10 | curPath=`pwd` 11 | rootPath=$(dirname "$curPath") 12 | 13 | startTime=`date +%s` 14 | PLUGIN_NAME='abkill' 15 | 16 | #echo $rootPath/plugins/$PLUGIN_NAME 17 | mkdir -p $rootPath/scripts/tmp 18 | cd $rootPath/plugins/$PLUGIN_NAME && zip $rootPath/scripts/tmp/${PLUGIN_NAME}_${startTime}.zip -r ./* > /tmp/t.log + 2>&1 19 | 20 | endTime=`date +%s` 21 | ((outTime=($endTime-$startTime))) 22 | echo -e "Time consumed:\033[32m $outTime \033[0msecs.!" -------------------------------------------------------------------------------- /plugins/op_waf/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "hook":[ 3 | { 4 | "tag":"site_cb", 5 | "site_cb": { 6 | "title":"网站统计", 7 | "name":"op_waf", 8 | "add":{"func":"reload"}, 9 | "update":{"func":"reload"}, 10 | "delete":{"func":"reload"} 11 | } 12 | } 13 | ], 14 | "title":"OP防火墙", 15 | "tip":"soft", 16 | "name":"op_waf", 17 | "type":"其他插件", 18 | "ps":"有效防止sql注入/xss/一句话木马等常见渗透攻击", 19 | "install_pre_inspection":true, 20 | "shell":"install.sh", 21 | "checks":"server/op_waf", 22 | "path":"server/op_waf", 23 | "author":"loveshell", 24 | "home":"https://github.com/loveshell/ngx_lua_waf", 25 | "date":"2019-04-21", 26 | "pid": "1", 27 | "versions": ["0.4.1"] 28 | } -------------------------------------------------------------------------------- /plugins/xhprof/index.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

服务

5 |

重写模版

6 |

主页

7 |

预加载脚本

8 |

PHP版本

9 |

安全设置

10 |
11 |
12 |
13 |
14 |
15 | 16 |
17 | -------------------------------------------------------------------------------- /plugins/php-apt/conf/www.conf: -------------------------------------------------------------------------------- 1 | [www] 2 | user = {$PHP_USER} 3 | group = {$PHP_GROUP} 4 | 5 | listen = /run/php/php{$PHP_VERSION}-fpm.sock 6 | listen.owner = {$PHP_USER} 7 | listen.group = {$PHP_GROUP} 8 | listen.backlog = 4096 9 | pm = dynamic 10 | pm.max_children = 50 11 | pm.start_servers = 5 12 | pm.min_spare_servers = 5 13 | pm.max_spare_servers = 35 14 | pm.status_path = /phpfpm_status_apt{$PHP_VERSION} 15 | pm.max_requests = 1000 16 | request_terminate_timeout = 30 17 | request_slowlog_timeout = 10 18 | slowlog = /var/log/fpm-php{$PHP_VERSION}.www.slow.log 19 | 20 | ;php_admin_flag[log_errors] = on 21 | ;php_admin_value[error_log] = /var/log/fpm-php{$PHP_VERSION}.www.log 22 | 23 | 24 | -------------------------------------------------------------------------------- /plugins/php/versions/lib.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin:/opt/homebrew/bin 3 | export PATH=$PATH:/opt/homebrew/bin 4 | 5 | curPath=`pwd` 6 | rootPath=$(dirname "$curPath") 7 | rootPath=$(dirname "$rootPath") 8 | rootPath=$(dirname "$rootPath") 9 | rootPath=$(dirname "$rootPath") 10 | serverPath=$(dirname "$rootPath") 11 | 12 | version=$1 13 | action=$2 14 | 15 | if [ -f /lib/systemd/system/php${version}.service ];then 16 | systemctl ${action} php${version} 17 | elif [ -f /usr/lib/systemd/system/php${version}.service ]; then 18 | systemctl ${action} php${version} 19 | else 20 | $serverPath/php/init.d/php${version} ${action} 21 | fi -------------------------------------------------------------------------------- /plugins/xhprof/lib/xhprof_html/jquery/jquery.tooltip.css: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery Tooltip plugin 1.3 3 | * 4 | * http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ 5 | * http://docs.jquery.com/Plugins/Tooltip 6 | * 7 | * Copyright (c) 2006 - 2008 Jörn Zaefferer 8 | * 9 | * $Id$ 10 | * 11 | * Dual licensed under the MIT and GPL licenses: 12 | * http://www.opensource.org/licenses/mit-license.php 13 | * http://www.gnu.org/licenses/gpl.html 14 | */ 15 | 16 | #tooltip { 17 | position: absolute; 18 | z-index: 3000; 19 | border: 1px solid #111; 20 | background-color: lightyellow; 21 | padding: 5px; 22 | opacity: 0.9; 23 | } 24 | #tooltip h3, #tooltip div { margin: 0; } 25 | -------------------------------------------------------------------------------- /plugins/mysql/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "title":"MySQL", 3 | "tip":"soft", 4 | "name":"mysql", 5 | "type":"运行环境", 6 | "ps":"一种关系数据库管理系统!", 7 | "coexist": false, 8 | "install_pre_inspection":true, 9 | "uninstall_pre_inspection":true, 10 | "checks": "server/mysql/VERSION/bin/mysql", 11 | "path": "server/mysql/VERSION", 12 | "todo_versions":["5.6","5.7","8.0","8.2"], 13 | "versions":["5.5", "5.6", "5.7","8.0","8.2"], 14 | "updates":["5.5.62","5.6.50", "5.7.32","8.0.34","8.2.0"], 15 | "shell":"install.sh", 16 | "checks":"server/mysql", 17 | "path":"server/mysql", 18 | "author":"mysql", 19 | "home":"https://dev.mysql.com/downloads/mysql", 20 | "date":"2017-11-24", 21 | "pid": "2" 22 | } 23 | -------------------------------------------------------------------------------- /plugins/sphinx/conf/sphinx.conf: -------------------------------------------------------------------------------- 1 | # 2 | # Minimal Sphinx configuration sample (clean, simple, functional) 3 | # 4 | 5 | 6 | searchd 7 | { 8 | listen = 9312 9 | listen = 9306:mysql41 10 | log = {$SERVER_APP}/index/searchd.log 11 | query_log = {$SERVER_APP}/index/query.log 12 | pid_file = {$SERVER_APP}/index/searchd.pid 13 | #workers = threads # for RT to work 14 | binlog_path = {$SERVER_APP}/index/binlog 15 | read_timeout = 5 16 | max_children = 0 17 | seamless_rotate = 1 18 | preopen_indexes = 1 19 | unlink_old = 1 20 | } 21 | 22 | index mydocs 23 | { 24 | type = rt 25 | path = {$SERVER_APP}/bin/doc 26 | rt_field = title 27 | rt_attr_json = j 28 | } -------------------------------------------------------------------------------- /plugins/webstats/t/bench/bench.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin 3 | 4 | curPath=`pwd` 5 | rootPath=$(dirname "$curPath") 6 | rootPath=$(dirname "$rootPath") 7 | rootPath=$(dirname "$rootPath") 8 | rootPath=$(dirname "$rootPath") 9 | rootPath=$(dirname "$rootPath") 10 | 11 | # echo $rootPath 12 | 13 | resty=$rootPath/openresty/bin/resty 14 | 15 | RUN_CMD=$resty 16 | if [ ! -f $resty ];then 17 | RUN_CMD=/www/server/openresty/bin/resty 18 | fi 19 | 20 | 21 | # test 22 | # $RUN_CMD simple.lua 23 | 24 | # $RUN_CMD test_today.lua 25 | # $RUN_CMD test_time.lua 26 | 27 | # $RUN_CMD test_ngx_find.lua 28 | 29 | $RUN_CMD test_match_spider.lua -------------------------------------------------------------------------------- /plugins/keepalived/config/keepalived.conf: -------------------------------------------------------------------------------- 1 | ! Configuration File for keepalived 2 | 3 | global_defs { 4 | router_id MYSQL_MHA 5 | } 6 | 7 | vrrp_script chk_mysql_port { 8 | script "{$SERVER_PATH}/keepalived/scripts/chk.sh mysql" 9 | interval 2 10 | weight –5 11 | fall 2 12 | rise 1 13 | } 14 | 15 | vrrp_instance VI_MYSQL { 16 | state MASTER 17 | interface {$ETH_XX} 18 | virtual_router_id 51 19 | priority 100 20 | advert_int 1 21 | authentication { 22 | auth_type PASS 23 | auth_pass 1111 24 | } 25 | virtual_ipaddress { 26 | 192.168.10.10 27 | } 28 | 29 | track_script { 30 | chk_mysql_port 31 | } 32 | } -------------------------------------------------------------------------------- /plugins/keepalived/tpl/keepalived.mysql.master.conf: -------------------------------------------------------------------------------- 1 | ! Configuration File for keepalived 2 | 3 | global_defs { 4 | router_id MYSQL_MHA 5 | } 6 | 7 | vrrp_script chk_mysql_port { 8 | script "{$SERVER_PATH}/scripts/chk.sh mysql" 9 | interval 2 10 | weight –5 11 | fall 2 12 | rise 1 13 | } 14 | 15 | vrrp_instance VI_MYSQL { 16 | state MASTER 17 | interface {$ETH_XX} 18 | virtual_router_id 51 19 | priority 101 20 | advert_int 1 21 | authentication { 22 | auth_type PASS 23 | auth_pass 1111 24 | } 25 | virtual_ipaddress { 26 | 192.168.10.10 27 | } 28 | 29 | track_script { 30 | chk_mysql_port 31 | } 32 | } -------------------------------------------------------------------------------- /plugins/op_load_balance/index.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

服务

5 |

负载均衡

6 |
7 |
8 |
9 |
10 |
11 | 12 |
13 | 14 | 15 | -------------------------------------------------------------------------------- /plugins/backup_ftp/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin 3 | export PATH 4 | 5 | curPath=`pwd` 6 | rootPath=$(dirname "$curPath") 7 | rootPath=$(dirname "$rootPath") 8 | serverPath=$(dirname "$rootPath") 9 | 10 | install_tmp=${rootPath}/tmp/mw_install.pl 11 | sys_os=`uname` 12 | 13 | 14 | Install_App() 15 | { 16 | mkdir -p ${serverPath}/backup_ftp 17 | echo "${1}" > ${serverPath}/backup_ftp/version.pl 18 | echo '安装完成' > $install_tmp 19 | 20 | } 21 | 22 | Uninstall_App() 23 | { 24 | rm -rf ${serverPath}/backup_ftp 25 | } 26 | 27 | action=$1 28 | if [ "${1}" == 'install' ];then 29 | Install_App $2 30 | else 31 | Uninstall_App $2 32 | fi 33 | -------------------------------------------------------------------------------- /plugins/dynamic-tracking/index.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 |

服务

6 |

自启动

7 |
8 |
9 |
10 |
11 |
12 |
13 | -------------------------------------------------------------------------------- /plugins/webstats/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "hook":[ 3 | { 4 | "tag":"site_cb", 5 | "site_cb": { 6 | "title":"网站统计", 7 | "name":"webstats", 8 | "add":{"func":"reload"}, 9 | "update":{"func":"reload"}, 10 | "delete":{"func":"reload"} 11 | } 12 | } 13 | ], 14 | "sort": "7", 15 | "ps": "网站统计报表", 16 | "name": "webstats", 17 | "title": "网站统计", 18 | "shell": "install.sh", 19 | "versions":["0.2.5"], 20 | "tip": "soft", 21 | "install_pre_inspection":true, 22 | "checks": "server/webstats", 23 | "path": "server/webstats", 24 | "display": 1, 25 | "author": "midoks", 26 | "date": "2022-07-18", 27 | "home": "https://github.com/midoks/mdserver-web", 28 | "type": 0, 29 | "pid": "1" 30 | } -------------------------------------------------------------------------------- /plugins/keepalived/tpl/keepalived.mysql.backup.conf: -------------------------------------------------------------------------------- 1 | ! Configuration File for keepalived 2 | 3 | global_defs { 4 | router_id MYSQL_MHA 5 | } 6 | 7 | vrrp_script chk_mysql_port { 8 | script "{$SERVER_PATH}/scripts/chk.sh mysql" 9 | interval 2 10 | weight –5 11 | fall 2 12 | rise 1 13 | } 14 | 15 | vrrp_instance VI_MYSQL { 16 | state 这里所有节点定义为BACKUP 17 | interface {$ETH_XX} 18 | virtual_router_id 51 19 | priority 100 20 | advert_int 1 21 | authentication { 22 | auth_type PASS 23 | auth_pass 1111 24 | } 25 | virtual_ipaddress { 26 | 192.168.10.10 27 | } 28 | 29 | track_script { 30 | chk_mysql_port 31 | } 32 | } -------------------------------------------------------------------------------- /plugins/migration_api/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin 4 | export PATH 5 | 6 | curPath=`pwd` 7 | rootPath=$(dirname "$curPath") 8 | rootPath=$(dirname "$rootPath") 9 | serverPath=$(dirname "$rootPath") 10 | 11 | install_tmp=${rootPath}/tmp/mw_install.pl 12 | 13 | VERSION=1.0 14 | 15 | Install_App(){ 16 | mkdir -p $serverPath/migration_api 17 | echo "${VERSION}" > $serverPath/migration_api/version.pl 18 | echo '正在安装脚本文件...' > $install_tmp 19 | } 20 | 21 | Uninstall_App() 22 | { 23 | rm -rf $serverPath/migration_api 24 | } 25 | 26 | action=$1 27 | if [ "${1}" == 'install' ];then 28 | Install_App 29 | else 30 | Uninstall_App 31 | fi 32 | -------------------------------------------------------------------------------- /plugins/tgbot/startup/extend/init_cmd.py: -------------------------------------------------------------------------------- 1 | # coding:utf-8 2 | 3 | import sys 4 | import io 5 | import os 6 | import time 7 | import re 8 | import json 9 | import base64 10 | import threading 11 | 12 | sys.path.append(os.getcwd() + "/class/core") 13 | import mw 14 | 15 | import telebot 16 | from telebot import types 17 | from telebot.util import quick_markup 18 | 19 | 20 | def init(bot): 21 | bot.delete_my_commands(scope=None, language_code=None) 22 | bot.set_my_commands( 23 | commands=[ 24 | telebot.types.BotCommand("start", "查看帮助信息"), 25 | telebot.types.BotCommand("faq", "BBS帮助"), 26 | telebot.types.BotCommand("music", "搜索网易音乐"), 27 | ], 28 | ) 29 | -------------------------------------------------------------------------------- /plugins/php-yum/conf/www.conf: -------------------------------------------------------------------------------- 1 | [www] 2 | user = {$PHP_USER} 3 | group = {$PHP_GROUP} 4 | 5 | listen = /var/opt/remi/php{$PHP_VERSION}/run/php-fpm/www.sock 6 | listen.owner = {$PHP_USER} 7 | listen.group = {$PHP_GROUP} 8 | listen.backlog = 4096 9 | 10 | pm = dynamic 11 | pm.max_children = 50 12 | pm.start_servers = 5 13 | pm.min_spare_servers = 5 14 | pm.max_spare_servers = 35 15 | pm.status_path = /phpfpm_status_yum{$PHP_VERSION} 16 | pm.max_requests = 1000 17 | request_terminate_timeout = 30 18 | request_slowlog_timeout = 10 19 | slowlog = /var/opt/remi/php{$PHP_VERSION}/log/php-fpm/www-slow.log 20 | 21 | php_admin_flag[log_errors] = on 22 | php_admin_value[error_log] = /var/opt/remi/php{$PHP_VERSION}/log/php-fpm/error.log -------------------------------------------------------------------------------- /plugins/webstats/t/bench/test_today.lua: -------------------------------------------------------------------------------- 1 | 2 | local function target() 3 | ngx.re.find("hello, world.", [[\w+\.]], "jo") 4 | end 5 | for i = 1, 100 do 6 | target() 7 | end 8 | -- 以上为预热操作 9 | collectgarbage() 10 | 11 | 12 | ngx.update_time() 13 | local begin = ngx.now() 14 | local N = 1e6 15 | for i = 1, N do 16 | os.date("%Y%m%d") 17 | -- ngx.say(t) 18 | end 19 | ngx.update_time() 20 | 21 | ngx.say("os.date elapsed: ", (ngx.now() - begin) / N) 22 | 23 | 24 | ngx.update_time() 25 | local begin = ngx.now() 26 | local N = 1e6 27 | for i = 1, N do 28 | ngx.re.gsub(ngx.today(),'-','') 29 | -- ngx.say(t) 30 | end 31 | ngx.update_time() 32 | 33 | ngx.say("ngx.today() elapsed: ", (ngx.now() - begin) / N) 34 | -------------------------------------------------------------------------------- /plugins/openresty/index.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

服务

5 |

自启动

6 |

配置修改

7 |

负载状态

8 |

性能调整

9 |

错误日志

10 |
11 |
12 |
13 |
14 |
15 | 16 |
17 | 18 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | setuptools>=33.1.1 2 | Werkzeug>=1.0.1,<3.0.0 3 | wheel>=0.37.1 4 | gunicorn==20.1.0 5 | requests>=2.27.1 6 | urllib3>=1.21.1 7 | flask>=2.0.3,<3.0.0 8 | flask-session==0.3.2 9 | flask-helper==0.19 10 | flask-bcrypt==1.0.1 11 | flask-caching>=1.10.1 12 | cache==1.0.3 13 | gevent>=22.10.2 14 | gevent-websocket==0.10.1 15 | psutil==5.9.1 16 | chardet==3.0.4 17 | flask-sqlalchemy==2.3.2 18 | pyOpenSSL==23.2.0 19 | cryptography>=40.0.2 20 | configparser==5.2.0 21 | python-engineio==4.3.2 22 | python-socketio>=4.2.0 23 | flask-socketio==5.2.0 24 | flask_sockets==0.2.1 25 | zmq==0.0.0 26 | paramiko>=2.8.0 27 | pymongo 28 | pillow 29 | Jinja2>=2.11.2 30 | PyMySQL==1.0.2 31 | whitenoise==5.3.0 32 | pyTelegramBotAPI 33 | telebot -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.yml: -------------------------------------------------------------------------------- 1 | name: Bug提交 2 | description: 提交错误报告以帮助我们改进 3 | labels: ["\U0001F48A bug"] 4 | body: 5 | - type: markdown 6 | attributes: 7 | value: | 8 | 感谢您花时间填写此错误报告! 9 | 10 | - 如有疑问,请讨论[Discussions](https://github.com/midoks/mdserver-web/discussions). 11 | - 检查以确保尚未有人打开类似的[issue](https://github.com/midoks/mdserver-web/issues). 12 | - type: input 13 | attributes: 14 | label: 操作系统 15 | description: | 16 | 请指定您报告的确切操作系统名称和版本,例如"CentOS 7"、"Ubuntu 20.04"。 17 | validations: 18 | required: true 19 | - type: textarea 20 | attributes: 21 | label: 描述错误 22 | description: 对bug的清晰而简洁的描述。 23 | validations: 24 | required: true -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/documentation.yml: -------------------------------------------------------------------------------- 1 | name: Bug提交 2 | description: 提交错误报告以帮助我们改进 3 | labels: ["\U0001F48A bug"] 4 | body: 5 | - type: markdown 6 | attributes: 7 | value: | 8 | 感谢您花时间填写此错误报告! 9 | 10 | - 如有疑问,请讨论[Discussions](https://github.com/midoks/mdserver-web/discussions). 11 | - 检查以确保尚未有人打开类似的[issue](https://github.com/midoks/mdserver-web/issues). 12 | - type: input 13 | attributes: 14 | label: 操作系统 15 | description: | 16 | 请指定您报告的确切操作系统名称和版本,例如"CentOS 7"、"Ubuntu 20.04"。 17 | validations: 18 | required: true 19 | - type: textarea 20 | attributes: 21 | label: 描述错误 22 | description: 对bug的清晰而简洁的描述。 23 | validations: 24 | required: true -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.yml: -------------------------------------------------------------------------------- 1 | name: Bug提交 2 | description: 提交错误报告以帮助我们改进 3 | labels: ["\U0001F48A bug"] 4 | body: 5 | - type: markdown 6 | attributes: 7 | value: | 8 | 感谢您花时间填写此错误报告! 9 | 10 | - 如有疑问,请讨论[Discussions](https://github.com/midoks/mdserver-web/discussions). 11 | - 检查以确保尚未有人打开类似的[issue](https://github.com/midoks/mdserver-web/issues). 12 | - type: input 13 | attributes: 14 | label: 操作系统 15 | description: | 16 | 请指定您报告的确切操作系统名称和版本,例如"CentOS 7"、"Ubuntu 20.04"。 17 | validations: 18 | required: true 19 | - type: textarea 20 | attributes: 21 | label: 描述错误 22 | description: 对bug的清晰而简洁的描述。 23 | validations: 24 | required: true -------------------------------------------------------------------------------- /plugins/php/init.d/php.service.tpl: -------------------------------------------------------------------------------- 1 | # It's not recommended to modify this file in-place, because it 2 | # will be overwritten during upgrades. If you want to customize, 3 | # the best way is to use the "systemctl edit" command. 4 | # systemctl daemon-reload 5 | 6 | [Unit] 7 | Description=The PHP {$VERSION} FastCGI Process Manager 8 | After=network.target 9 | 10 | [Service] 11 | Environment="LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/www/server/lib/icu/lib" 12 | PIDFile={$SERVER_PATH}/php/{$VERSION}/var/run/php-fpm.pid 13 | ExecStart={$SERVER_PATH}/php/{$VERSION}/sbin/php-fpm --nodaemonize --fpm-config {$SERVER_PATH}/php/{$VERSION}/etc/php-fpm.conf 14 | ExecReload=/bin/kill -USR2 $MAINPID 15 | PrivateTmp=false 16 | 17 | [Install] 18 | WantedBy=multi-user.target 19 | -------------------------------------------------------------------------------- /plugins/varnish/index.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

服务

5 |

自启动

6 |

VCL

7 |

服务配置

8 |

日志

9 |

状态

10 |
11 |
12 |
13 |
14 |
15 |
16 | -------------------------------------------------------------------------------- /plugins/sys-opt/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin 3 | export PATH 4 | 5 | 6 | curPath=`pwd` 7 | rootPath=$(dirname "$curPath") 8 | rootPath=$(dirname "$rootPath") 9 | serverPath=$(dirname "$rootPath") 10 | 11 | 12 | install_tmp=${rootPath}/tmp/mw_install.pl 13 | 14 | 15 | Install_sysopt() 16 | { 17 | echo '正在安装脚本文件...' > $install_tmp 18 | mkdir -p $serverPath/sys-opt 19 | echo '1.0' > $serverPath/sys-opt/version.pl 20 | echo '安装完成' > $install_tmp 21 | 22 | } 23 | 24 | Uninstall_sysopt() 25 | { 26 | rm -rf $serverPath/sys-opt 27 | echo "卸载完成" > $install_tmp 28 | } 29 | 30 | action=$1 31 | if [ "${1}" == 'install' ];then 32 | Install_sysopt 33 | else 34 | Uninstall_sysopt 35 | fi 36 | -------------------------------------------------------------------------------- /plugins/webhook/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin 3 | export PATH 4 | 5 | curPath=`pwd` 6 | rootPath=$(dirname "$curPath") 7 | rootPath=$(dirname "$rootPath") 8 | serverPath=$(dirname "$rootPath") 9 | 10 | install_tmp=${rootPath}/tmp/mw_install.pl 11 | 12 | VERSION=1.0 13 | 14 | Install_App() 15 | { 16 | echo '正在安装脚本文件...' > $install_tmp 17 | mkdir -p $serverPath/webhook 18 | echo "${VERSION}" > $serverPath/webhook/version.pl 19 | echo '安装完成' > $install_tmp 20 | } 21 | 22 | Uninstall_App() 23 | { 24 | rm -rf $serverPath/webhook 25 | echo "Uninstall_App" > $install_tmp 26 | } 27 | 28 | action=$1 29 | if [ "${1}" == 'install' ];then 30 | Install_App 31 | else 32 | Uninstall_App 33 | fi 34 | -------------------------------------------------------------------------------- /plugins/webssh/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "hook":[ 3 | { 4 | "tag":"menu", 5 | "menu": { 6 | "title":"终端管理", 7 | "name":"webssh", 8 | "path":"menu/index.html", 9 | "css_path":"menu/index.css", 10 | "js_path":"js/webssh.js" 11 | } 12 | }, 13 | { 14 | "tag":"global_static", 15 | "global_static": { 16 | "title":"终端管理", 17 | "name":"webssh", 18 | "css_path":"menu/ico.css" 19 | } 20 | } 21 | ], 22 | "id":3, 23 | "title":"SSH终端", 24 | "tip":"lib", 25 | "name":"webssh", 26 | "type":"扩展", 27 | "ps":"完整功能的SSH客户端,仅用于连接本服务器", 28 | "versions":"2.0", 29 | "shell":"install.sh", 30 | "checks":"server/webssh", 31 | "path": "server/webssh", 32 | "author":"ssh", 33 | "home":"", 34 | "date":"2018-12-20", 35 | "pid":"4" 36 | } -------------------------------------------------------------------------------- /plugins/webstats/t/bench/test_ngx_find.lua: -------------------------------------------------------------------------------- 1 | 2 | local function target() 3 | ngx.re.find("hello, world.", [[\w+\.]], "jo") 4 | end 5 | for i = 1, 100 do 6 | target() 7 | end 8 | -- 以上为预热操作 9 | collectgarbage() 10 | 11 | local spider_match = "aa 220" 12 | 13 | 14 | ngx.update_time() 15 | local begin = ngx.now() 16 | local N = 1e7 17 | for i = 1, N do 18 | ngx.re.find(spider_match, "360", "ijo") 19 | end 20 | ngx.update_time() 21 | 22 | ngx.say("ngx.re.find elapsed: ", (ngx.now() - begin) / N) 23 | 24 | 25 | 26 | ngx.update_time() 27 | local begin = ngx.now() 28 | local N = 1e7 29 | for i = 1, N do 30 | string.find(spider_match, "360", 1, true) 31 | end 32 | ngx.update_time() 33 | 34 | ngx.say("string.find elapsed: ", (ngx.now() - begin) / N) 35 | 36 | -------------------------------------------------------------------------------- /rewrite/nginx/sub.conf.tpl: -------------------------------------------------------------------------------- 1 | location / { 2 | set $replace 'tmplate_replace'; 3 | set $spider_request '0'; 4 | 5 | if ($http_user_agent ~* '(baiduspider|360sipder|Sogou Orion spider|Sogou News Spider|Sogou blog|Sogou spider2|Sogou inst spider|Sogou web spider|Sogou spider|trendiction|Yahoo|semrush|Toutiao|Google|qihoobot|Googlebot|Googlebot-Mobile|Googlebot-Image|Mediapartners-Google|Adsbot-Google|Feedfetcher-Google|Yahoo! Slurp|Yahoo! Slurp China|YoudaoBot|Sosospider|MSNBot|ia_archiver|Tomato Bot)') { 6 | set $spider_request '1'; 7 | } 8 | 9 | if ($spider_request = '0' ) { 10 | set $replace 'tmplate_replace'; 11 | } 12 | 13 | sub_filter 'tmplate_replace' $replace; 14 | sub_filter_once on; 15 | sub_filter_types *; 16 | } -------------------------------------------------------------------------------- /rewrite/nginx/whmcs.conf: -------------------------------------------------------------------------------- 1 | location / { 2 | 3 | if (!-e $request_filename) { 4 | rewrite ^/contact/$ /./contact.php last; 5 | rewrite ^/status$ /./pages.php?cate=$1&page=status last; 6 | rewrite ^/act$ /./pages.php?cate=$1&page=actindex last; 7 | rewrite ^/(\w+)/(\w+)/$ /./pages.php?cate=$1&page=$2 last; 8 | rewrite ^/cart/(\w+)$ /./cart.php?a=$1 last; 9 | rewrite ^/console$ /./clientarea.php last; 10 | rewrite ^/sitemap.xml$ /./sitemap.php last; 11 | rewrite ^/console/(\w+)$ /./clientarea.php?action=services&group=$1 last; 12 | rewrite ^/console/ec/([0-9]+)$ /./clientarea.php?action=productdetails&id=$1 last; 13 | rewrite ^/console/ec/(\w+)$ /./clientarea.php?action=services&group=ec&page=$1 last; 14 | rewrite ^ /index.php last; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /plugins/webssh/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin 3 | export PATH 4 | 5 | 6 | curPath=`pwd` 7 | rootPath=$(dirname "$curPath") 8 | rootPath=$(dirname "$rootPath") 9 | serverPath=$(dirname "$rootPath") 10 | 11 | 12 | install_tmp=${rootPath}/tmp/mw_install.pl 13 | 14 | VERSION=$2 15 | 16 | Install_webssh() 17 | { 18 | echo '正在安装脚本文件...' > $install_tmp 19 | mkdir -p $serverPath/webssh 20 | echo "${VERSION}" > $serverPath/webssh/version.pl 21 | echo '安装完成' > $install_tmp 22 | 23 | } 24 | 25 | Uninstall_webssh() 26 | { 27 | rm -rf $serverPath/webssh 28 | echo "卸载完成" > $install_tmp 29 | } 30 | 31 | action=$1 32 | if [ "${1}" == 'install' ];then 33 | Install_webssh 34 | else 35 | Uninstall_webssh 36 | fi 37 | -------------------------------------------------------------------------------- /plugins/tgbot/index.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 |

服务

6 |

自启动

7 |

Bot配置

8 |

扩展列表

9 |

日志

10 |
11 |
12 |
13 |
14 |
15 |
16 | 21 | -------------------------------------------------------------------------------- /plugins/haproxy/tpl/default.tpl: -------------------------------------------------------------------------------- 1 | global 2 | daemon 3 | pidfile /tmp/haproxy.pid 4 | maxconn 4000 5 | user haproxy 6 | group haproxy 7 | 8 | 9 | defaults 10 | mode http 11 | log global 12 | option httplog 13 | timeout connect 10s 14 | timeout client 15s 15 | timeout server 15s 16 | 17 | 18 | listen stats 19 | mode http 20 | bind *:10800 21 | stats enable 22 | stats refresh 10 23 | stats uri /haproxy 24 | stats realm Haproxy\ Statistics 25 | stats auth {$HA_USER}:{$HA_PWD} 26 | 27 | frontend http-in 28 | bind *:1080 29 | default_backend servers 30 | option forwardfor 31 | option http-keep-alive 32 | 33 | backend servers 34 | balance roundrobin 35 | server web1 0.0.0.0:9090 check inter 2000 rise 2 fall 5 36 | 37 | 38 | -------------------------------------------------------------------------------- /plugins/phpmyadmin/conf/config.inc.php: -------------------------------------------------------------------------------- 1 | 17 | -------------------------------------------------------------------------------- /plugins/op_waf/t/bench/bench.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin 3 | 4 | curPath=`pwd` 5 | rootPath=$(dirname "$curPath") 6 | rootPath=$(dirname "$rootPath") 7 | rootPath=$(dirname "$rootPath") 8 | rootPath=$(dirname "$rootPath") 9 | rootPath=$(dirname "$rootPath") 10 | 11 | # echo $rootPath 12 | 13 | resty=$rootPath/openresty/bin/resty 14 | 15 | RUN_CMD=$resty 16 | if [ ! -f $resty ];then 17 | RUN_CMD=/www/server/openresty/bin/resty 18 | fi 19 | 20 | 21 | # test 22 | # $RUN_CMD simple.lua 23 | # $RUN_CMD test_gsub.lua 24 | 25 | # $RUN_CMD --shdict 'limit 10m' test_find_server_name.lua 26 | # $RUN_CMD --stap --shdict 'limit 10m' test_find_server_name.lua 27 | 28 | # $RUN_CMD test_rand.lua 29 | # $RUN_CMD test_ffi_time.lua 30 | $RUN_CMD test_get_cpu.lua -------------------------------------------------------------------------------- /plugins/sphinx/index.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

服务

5 |

自启动

6 |

配置修改

7 |

运行日志

8 |

查询日志

9 |

运行状态

10 |

重建索引

11 |

说明

12 |
13 |
14 |
15 |
16 |
17 |
18 | -------------------------------------------------------------------------------- /rewrite/nginx/dedecms.conf: -------------------------------------------------------------------------------- 1 | location / { 2 | rewrite ^/list-([0-9]+)\.html$ /plus/list.php?tid=$1 last; 3 | rewrite ^/list-([0-9]+)-([0-9]+)-([0-9]+)\.html$ /plus/list.php?tid=$1&totalresult=$2&PageNo=$3 last; 4 | rewrite ^/view-([0-9]+)-1\.html$ /plus/view.php?arcID=$1 last; 5 | rewrite ^/view-([0-9]+)-([0-9]+)\.html$" /plus/view.php?aid=$1&pageno=$2 last; 6 | rewrite ^/plus/list-([0-9]+)\.html$ /plus/list.php?tid=$1 last; 7 | rewrite ^/plus/list-([0-9]+)-([0-9]+)-([0-9]+)\.html$ /plus/list.php?tid=$1&totalresult=$2&PageNo=$3 last; 8 | rewrite ^/plus/view-([0-9]+)-1\.html$ /plus/view.php?arcID=$1 last; 9 | rewrite ^/plus/view-([0-9]+)-([0-9]+)\.html$ /plus/view.php?aid=$1&pageno=$2 last; 10 | rewrite ^/tags.html$ /tags.php last; 11 | rewrite ^/tag-([0-9]+)-([0-9]+)\.html$ /tags.php?/$1/$2/ last; 12 | } 13 | -------------------------------------------------------------------------------- /plugins/php-guard/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin 3 | export PATH 4 | 5 | curPath=`pwd` 6 | rootPath=$(dirname "$curPath") 7 | rootPath=$(dirname "$rootPath") 8 | serverPath=$(dirname "$rootPath") 9 | 10 | install_tmp=${rootPath}/tmp/mw_install.pl 11 | 12 | 13 | Install_pg() 14 | { 15 | echo '卸载PHP守护中...' 16 | echo 'True' > ${rootPath}/data/502Task.pl 17 | 18 | mkdir -p $serverPath/php-guard 19 | echo '1.0' > $serverPath/php-guard/version.pl 20 | echo '卸载PHP守护成功!!' 21 | } 22 | 23 | Uninstall_pg() 24 | { 25 | rm -rf ${rootPath}/data/502Task.pl 26 | rm -rf $serverPath/php-guard 27 | echo '卸载PHP守护成功!!' 28 | } 29 | 30 | 31 | action=$1 32 | host=$2 33 | if [ "${1}" == 'install' ];then 34 | Install_pg 35 | else 36 | Uninstall_pg 37 | fi 38 | -------------------------------------------------------------------------------- /plugins/php-apt/versions/lib.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin 3 | export PATH 4 | 5 | curPath=`pwd` 6 | rootPath=$(dirname "$curPath") 7 | rootPath=$(dirname "$rootPath") 8 | rootPath=$(dirname "$rootPath") 9 | serverPath=$(dirname "$rootPath") 10 | 11 | version=$1 12 | 13 | if [ "$version" == '5.6' ];then 14 | echo '20131226' 15 | elif [[ "$version" == '7.0' ]]; then 16 | echo '20151012' 17 | elif [[ "$version" == '7.1' ]]; then 18 | echo '20160303' 19 | elif [[ "$version" == '7.2' ]]; then 20 | echo '20170718' 21 | elif [[ "$version" == '7.3' ]]; then 22 | echo '20180731' 23 | elif [[ "$version" == '7.4' ]]; then 24 | echo '20190902' 25 | elif [[ "$version" == '8.0' ]]; then 26 | echo '20200930' 27 | elif [[ "$version" == '8.1' ]]; then 28 | echo '20210902' 29 | fi -------------------------------------------------------------------------------- /plugins/tgclient/index.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 |

服务

6 |

自启动

7 |

配置

8 |

扩展列表

9 |

日志

10 |

说明

11 |
12 |
13 |
14 |
15 |
16 |
17 | 22 | -------------------------------------------------------------------------------- /plugins/op_waf/t/readme.md: -------------------------------------------------------------------------------- 1 | # 火焰图安装 [ubuntu 20.04] 2 | ``` 3 | 4 | sudo apt-get install -y linux-tools-common linux-tools-generic linux-tools-`uname -r` 5 | apt-get update -y 6 | sudo apt -y install elfutils 7 | apt-get install -y systemtap gcc 8 | sudo apt-get install -y linux-headers-generic gcc libcap-dev 9 | apt install -y kernel-debuginfo-common kernel-debuginfo 10 | ``` 11 | 12 | # 测试有效性 13 | ``` 14 | stap -ve 'probe begin { log("hello systemtap!") exit() }' 15 | 16 | 17 | stap -e 'probe kernel.function("sys_open") {log("hello world") exit()}' 18 | 19 | 20 | stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}' 21 | ``` 22 | 23 | 24 | # openresty 测试 25 | ``` 26 | 27 | cd /www/server/mdserver-web/plugins/op_waf/t && sh ngx_debug.sh lua t1 28 | cd /www/server/mdserver-web/plugins/op_waf/t && sh ngx_debug.sh c t2 29 | ``` 30 | -------------------------------------------------------------------------------- /plugins/system_safe/index.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

服务

5 |

自启动

6 |

防护配置

7 |

封锁IP

8 |

日志审计

9 |

操作日志

10 |
11 |
12 |
13 |
14 |
15 |
16 | 17 | 18 | -------------------------------------------------------------------------------- /plugins/rsyncd/conf/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "receive":{ 3 | "default":{ 4 | "uid": "root", 5 | "use chroot": "no", 6 | "dont compress": "*.gz *.tgz *.zip *.z *.Z *.rpm *.deb *.bz2 *.mp4 *.avi *.swf *.rar", 7 | "hosts allow": "", 8 | "max connections": 200, 9 | "gid": "root", 10 | "timeout": 600, 11 | "pid file": "/var/run/rsyncd.pid", 12 | "log file": "/var/log/rsyncd.log", 13 | "port": 873 14 | }, 15 | "list":[] 16 | }, 17 | "send":{ 18 | "default":{ 19 | "logfile": "/www/server/rsyncd/lsyncd.log", 20 | "inotifyMode": "CloseWrite", 21 | "maxProcesses": 8, 22 | "statusFile": "/www/server/rsyncd/lsyncd.status" 23 | }, 24 | "list":[] 25 | } 26 | } -------------------------------------------------------------------------------- /route/static/codemirror/addon/scroll/scrollpastend.js: -------------------------------------------------------------------------------- 1 | (function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(b){b.defineOption("scrollPastEnd",false,function(d,f,e){if(e&&e!=b.Init){d.off("change",a);d.off("refresh",c);d.display.lineSpace.parentNode.style.paddingBottom="";d.state.scrollPastEndPadding=null}if(f){d.on("change",a);d.on("refresh",c);c(d)}});function a(d,e){if(b.changeEnd(e).line==d.lastLine()){c(d)}}function c(d){var g="";if(d.lineCount()>1){var e=d.display.scroller.clientHeight-30,f=d.getLineHandle(d.lastLine()).height;g=(e-f)+"px"}if(d.state.scrollPastEndPadding!=g){d.state.scrollPastEndPadding=g;d.display.lineSpace.parentNode.style.paddingBottom=g;d.off("refresh",c);d.setSize();d.on("refresh",c)}}}); -------------------------------------------------------------------------------- /plugins/haproxy/conf/haproxy.conf: -------------------------------------------------------------------------------- 1 | global 2 | daemon 3 | #一般情况下,可关闭 4 | log 127.0.0.1 local0 5 | pidfile /tmp/haproxy.pid 6 | maxconn 4000 7 | user haproxy 8 | group haproxy 9 | 10 | defaults 11 | mode http 12 | log global 13 | option httplog 14 | timeout connect 10s 15 | timeout client 15s 16 | timeout server 15s 17 | 18 | 19 | listen stats 20 | mode http 21 | bind *:10800 22 | stats enable 23 | stats refresh 10 24 | stats uri /haproxy 25 | stats realm Haproxy\ Statistics 26 | stats auth admin:admin 27 | 28 | frontend http-in 29 | bind *:1080 30 | default_backend servers 31 | option forwardfor 32 | #option httpclose 33 | option http-keep-alive 34 | 35 | backend servers 36 | balance roundrobin 37 | server web1 0.0.0.0:9090 check inter 2000 rise 2 fall 5 38 | 39 | 40 | -------------------------------------------------------------------------------- /plugins/mongodb/index.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

服务

5 |

自启动

6 |

配置修改

7 |

负载状态

8 |

文档状态

9 |

复制状态

10 |

日志

11 |
12 |
13 |
14 |
15 |
16 |
17 | -------------------------------------------------------------------------------- /route/static/codemirror/addon/hint/anyword-hint.js: -------------------------------------------------------------------------------- 1 | (function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(c){var b=/[\w$]+/,a=500;c.registerHelper("hint","anyword",function(o,u){var f=u&&u.word||b;var n=u&&u.range||a;var q=o.getCursor(),e=o.getLine(q.line);var l=q.ch,h=l;while(h&&f.test(e.charAt(h-1))){--h}var g=h!=l&&e.slice(h,l);var p=u&&u.list||[],d={};var s=new RegExp(f.source,"g");for(var k=-1;k<=1;k+=2){var t=q.line,j=Math.min(Math.max(t+k*n,o.firstLine()),o.lastLine())+k;for(;t!=j;t+=k){var r=o.getLine(t),i;while(i=s.exec(r)){if(t==q.line&&i[0]===g){continue}if((!g||i[0].lastIndexOf(g,0)==0)&&!Object.prototype.hasOwnProperty.call(d,i[0])){d[i[0]]=true;p.push(i[0])}}}}return{list:p,from:c.Pos(q.line,h),to:c.Pos(q.line,l)}})}); -------------------------------------------------------------------------------- /plugins/gogs/init.d/gogs.service.bak.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Gogs 3 | After=network.target 4 | 5 | [Service] 6 | # Modify these two values and uncomment them if you have 7 | # repos with lots of files and get an HTTP error 500 because 8 | # of that 9 | ### 10 | #LimitMEMLOCK=infinity 11 | #LimitNOFILE=65535 12 | Type=simple 13 | User=git 14 | Group=git 15 | WorkingDirectory={$SERVER_PATH}/gogs 16 | ExecStart={$SERVER_PATH}/gogs/gogs web 17 | ExecReload=/bin/kill -USR2 $MAINPID 18 | Restart=always 19 | Environment=USER=git HOME=/home/git 20 | 21 | # Some distributions may not support these hardening directives. If you cannot start the service due 22 | # to an unknown option, comment out the ones not supported by your version of systemd. 23 | ProtectSystem=full 24 | PrivateDevices=yes 25 | PrivateTmp=yes 26 | NoNewPrivileges=true 27 | 28 | [Install] 29 | WantedBy=multi-user.target 30 | -------------------------------------------------------------------------------- /plugins/clean/index.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

服务

5 |

配置修改

6 |

运行日志

7 |

说明

8 |
9 |
10 |
11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /plugins/gogs/hook/commit.tpl.ssh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo `date` 4 | 5 | GITADDR="{$GITROOTURL}/{$USERNAME}/{$PROJECT}" 6 | GIT_SDIR="{$CODE_DIR}" 7 | 8 | GIT_USER_DIR="${GIT_SDIR}/{$USERNAME}" 9 | GIT_PROJECT_DIR="${GIT_USER_DIR}/{$PROJECT}" 10 | 11 | # echo $GIT_PROJECT_DIR 12 | if [ ! -d $GIT_PROJECT_DIR ];then 13 | mkdir -p $GIT_USER_DIR && cd $GIT_USER_DIR 14 | git clone $GITADDR 15 | fi 16 | 17 | unset GIT_DIR 18 | cd $GIT_PROJECT_DIR && git pull 19 | 20 | # func 2 21 | # cd $GIT_PROJECT_DIR && env -i git pull origin master 22 | 23 | 24 | 25 | WEB_PATH={$WEB_ROOT}/{$USERNAME}/{$PROJECT} 26 | mkdir -p $WEB_PATH 27 | 28 | rsync -vauP --delete --exclude=".*" $GIT_PROJECT_DIR/ $WEB_PATH 29 | 30 | sysName=`uname` 31 | if [ $sysName == 'Darwin' ]; then 32 | USER=$(who | sed -n "2,1p" |awk '{print $1}') 33 | chown -R $USER:staff $WEB_PATH 34 | else 35 | chown -R www:www $WEB_PATH 36 | fi -------------------------------------------------------------------------------- /plugins/webhook/index.html: -------------------------------------------------------------------------------- 1 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
名称添加时间近期调用调用次数密钥操作
26 |
27 | 28 | -------------------------------------------------------------------------------- /plugins/dynamic-tracking/versions/macos.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin 3 | export PATH 4 | 5 | curPath=`pwd` 6 | rootPath=$(dirname "$curPath") 7 | rootPath=$(dirname "$rootPath") 8 | serverPath=$(dirname "$rootPath") 9 | 10 | install_tmp=${rootPath}/tmp/mw_install.pl 11 | SYS_ARCH=`arch` 12 | 13 | # 关于macosx使用dtrace 14 | 15 | # https://groups.google.com/g/openresty/c/MswlH_8DDHA 16 | # http://dtrace.org/blogs/brendan/2012/11/14/dtracing-in-anger/ 17 | 18 | 19 | # dtrace -x ustackframes=100 -n 'pid$target::mach_msg_trap:entry { @[ustack()] = count(); } tick-30s { exit(0); }' -p 18572 -o out.SystemUIServer_stacks 20 | # /Users/midoks/Desktop/mwdev/server/dynamic-tracking/FlameGraph/stackcollapse.pl out.SystemUIServer_stacks > kernel.cbt 21 | # /Users/midoks/Desktop/mwdev/server/dynamic-tracking/FlameGraph/flamegraph.pl kernel.cbt > kernel.svg 22 | -------------------------------------------------------------------------------- /plugins/mysql/lib/rpcgen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin 3 | export PATH 4 | 5 | curPath=`pwd` 6 | rootPath=$(dirname "$curPath") 7 | rootPath=$(dirname "$rootPath") 8 | rootPath=$(dirname "$rootPath") 9 | rootPath=$(dirname "$rootPath") 10 | 11 | # echo $rootPath 12 | 13 | SERVER_ROOT=$rootPath/lib 14 | SOURCE_ROOT=$rootPath/source/lib 15 | 16 | which rpcgen 17 | if [ "$?" != "0" ];then 18 | 19 | if [ ! -f ${SOURCE_ROOT}/rpcsvc-proto-1.4.tar.gz ];then 20 | wget --no-check-certificate -O ${SOURCE_ROOT}/rpcsvc-proto-1.4.tar.gz https://github.com/thkukuk/rpcsvc-proto/releases/download/v1.4/rpcsvc-proto-1.4.tar.gz 21 | fi 22 | 23 | if [ ! -d ${SERVER_ROOT}/rpcsvc-proto-1.4 ];then 24 | cd ${SOURCE_ROOT} && tar -zxvf rpcsvc-proto-1.4.tar.gz 25 | cd ${SOURCE_ROOT}/rpcsvc-proto-1.4 26 | ./configure && make && make install 27 | fi 28 | 29 | fi -------------------------------------------------------------------------------- /plugins/op_waf/waf/rule/url.json: -------------------------------------------------------------------------------- 1 | [[1, "\\.(htaccess|mysql_history|bash_history|DS_Store|idea|user\\.ini)", "\u6587\u4ef6\u76ee\u5f55\u8fc7\u6ee41", 0], [1, "\\.(bak|inc|old|mdb|sql|php~|swp|java|class)$", "\u6587\u4ef6\u76ee\u5f55\u8fc7\u6ee42", 0], [1, "^/(vhost|bbs|host|wwwroot|www|site|root|backup|data|ftp|db|admin|website|web).*\\.(rar|sql|zip|tar\\.gz|tar)$", "\u6587\u4ef6\u76ee\u5f55\u8fc7\u6ee43", 0], [1, "/(hack|shell|spy|phpspy)\\.php$", "PHP\u811a\u672c\u6267\u884c\u8fc7\u6ee41", 0], [1, "^/(attachments|css|uploadfiles|static|forumdata|cache|avatar)/(\\w+).(php|jsp)$", "PHP\u811a\u672c\u6267\u884c\u8fc7\u6ee42", 0], [1, "(?:(union(.*?)select))", "SQL\u6ce8\u5165\u8fc7\u6ee41", 0], [1, "(?:define|eval|file_get_contents|include|require|require_once|shell_exec|phpinfo|system|passthru|preg_\\w+|execute|echo|print|print_r|var_dump|(fp)open|alert|showmodaldialog)\\(", "\u4e00\u53e5\u8bdd\u6728\u9a6c\u8fc7\u6ee41", 1]] -------------------------------------------------------------------------------- /plugins/sys-opt/index.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

服务

5 |

系统配置

6 |

安全日志

7 |

常用日志

8 |

任务日志

9 |

系统日志

10 |

说明

11 |
12 |
13 |
14 |
15 |
16 |
17 | 18 | -------------------------------------------------------------------------------- /route/static/codemirror/addon/display/autorefresh.js: -------------------------------------------------------------------------------- 1 | (function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(b){b.defineOption("autoRefresh",false,function(d,e){if(d.state.autoRefresh){a(d,d.state.autoRefresh);d.state.autoRefresh=null}if(e&&d.display.wrapper.offsetHeight==0){c(d,d.state.autoRefresh={delay:e.delay||250})}});function c(d,f){function e(){if(d.display.wrapper.offsetHeight){a(d,f);if(d.display.lastWrapHeight!=d.display.wrapper.clientHeight){d.refresh()}}else{f.timeout=setTimeout(e,f.delay)}}f.timeout=setTimeout(e,f.delay);f.hurry=function(){clearTimeout(f.timeout);f.timeout=setTimeout(e,50)};b.on(window,"mouseup",f.hurry);b.on(window,"keyup",f.hurry)}function a(d,e){clearTimeout(e.timeout);b.off(window,"mouseup",e.hurry);b.off(window,"keyup",e.hurry)}}); -------------------------------------------------------------------------------- /plugins/phpmyadmin/index.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

服务

5 |

重写模版

6 |

主页

7 |

PHP版本

8 |

安全设置

9 |

访问日志

10 |

错误日志

11 |

配置

12 |
13 |
14 |
15 |
16 |
17 | 18 |
19 | -------------------------------------------------------------------------------- /version/info.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "version": "0.9.9", 4 | "content": "* 目标版本。", 5 | }, 6 | { 7 | "version": "0.9.2", 8 | "content": "* 批量域名添加修复。
* 常用命令说明。", 9 | "path": "https://github.com/midoks/mdserver-web/releases/download/0.9.2/mdserver-web.zip" 10 | }, 11 | { 12 | "version": "0.9.1", 13 | "content": "* 菜单修复。
* 更新修复", 14 | "path": "https://github.com/midoks/mdserver-web/releases/download/0.9.1/mdserver-web.zip", 15 | "purge":"https://purge.jsdelivr.net/gh/midoks/mdserver-web@latest/scripts/update.sh" 16 | }, 17 | { 18 | "version": "0.9.0", 19 | "content": "* 主流系统支持。
* 插件支持更多参数。
* MySQL主从支持GTID和经典模式。
* MariaDB主从支持GTID和经典模式。
* Rsyncd更新。
* 添加网站统计的插件。
* 添加varnish插件。", 20 | "path": "https://github.com/midoks/mdserver-web/releases/download/0.9.0/mdserver-web.zip" 21 | } 22 | ] -------------------------------------------------------------------------------- /plugins/dynamic-tracking/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "hook":[ 3 | { 4 | "tag":"menu", 5 | "menu": { 6 | "title":"动态追踪", 7 | "name":"dynamic-tracking", 8 | "path":"static/html/index.html", 9 | "css_path":"static/css/dynamic-tracking.css", 10 | "js_path":"static/js/dynamic-tracking.js" 11 | } 12 | }, 13 | { 14 | "tag":"global_static", 15 | "global_static": { 16 | "title":"动态追踪", 17 | "name":"dynamic-tracking", 18 | "css_path":"static/css/ico.css" 19 | } 20 | } 21 | ], 22 | "sort": 7, 23 | "ps": "专业使用,动态追踪调试程序<无侵入>![潜龙勿用|实验]", 24 | "name": "dynamic-tracking", 25 | "title": "动态追踪", 26 | "shell": "install.sh", 27 | "versions":["0.1"], 28 | "tip": "soft", 29 | "checks": "server/dynamic-tracking", 30 | "path": "server/dynamic-tracking", 31 | "display": 1, 32 | "author": "midoks", 33 | "date": "2023-08-17", 34 | "type": 0, 35 | "pid": "4" 36 | } 37 | -------------------------------------------------------------------------------- /plugins/phpmyadmin/conf/phpmyadmin.conf: -------------------------------------------------------------------------------- 1 | server 2 | { 3 | listen 888; 4 | server_name 127.0.0.1; 5 | index index.html index.htm index.php; 6 | root {$SERVER_PATH}/phpmyadmin; 7 | 8 | #error_page 404 /404.html; 9 | include {$PHP_CONF_PATH}/enable-php-{$PHP_VER}.conf; 10 | 11 | #AUTH_START 12 | auth_basic "Authorization"; 13 | auth_basic_user_file {$SERVER_PATH}/phpmyadmin/pma.pass; 14 | #AUTH_END 15 | 16 | location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ 17 | { 18 | expires 30d; 19 | } 20 | 21 | location ~ .*\.(js|css)?$ 22 | { 23 | expires 12h; 24 | } 25 | 26 | location ~ /.*\.(log|pass|json|pl)$ { 27 | deny all; 28 | } 29 | 30 | 31 | location ~ /\. 32 | { 33 | deny all; 34 | } 35 | 36 | access_log {$SERVER_PATH}/phpmyadmin/access.log; 37 | error_log {$SERVER_PATH}/phpmyadmin/error.log; 38 | } -------------------------------------------------------------------------------- /plugins/gitea/hook/commit.tpl.ssh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo `date` 4 | 5 | GITADDR="{$GITROOTURL}/{$USERNAME}/{$PROJECT}" 6 | GIT_SDIR="{$CODE_DIR}" 7 | 8 | GIT_USER_DIR="${GIT_SDIR}/{$USERNAME}" 9 | GIT_PROJECT_DIR="${GIT_USER_DIR}/{$PROJECT}" 10 | 11 | # echo $GIT_PROJECT_DIR 12 | if [ ! -d $GIT_PROJECT_DIR ];then 13 | mkdir -p $GIT_USER_DIR && cd $GIT_USER_DIR 14 | git clone $GITADDR 15 | fi 16 | 17 | unset GIT_DIR 18 | git config pull.rebase false 19 | 20 | cd $GIT_PROJECT_DIR && git pull 21 | 22 | # func 2 23 | # cd $GIT_PROJECT_DIR && env -i git pull origin master 24 | 25 | 26 | 27 | WEB_PATH={$WEB_ROOT}/{$USERNAME}/{$PROJECT} 28 | mkdir -p $WEB_PATH 29 | 30 | rsync -vauP --delete --exclude=".*" $GIT_PROJECT_DIR/ $WEB_PATH 31 | 32 | sysName=`uname` 33 | if [ $sysName == 'Darwin' ]; then 34 | USER=$(who | sed -n "2,1p" |awk '{print $1}') 35 | chown -R $USER:staff $WEB_PATH 36 | else 37 | chown -R www:www $WEB_PATH 38 | fi -------------------------------------------------------------------------------- /plugins/keepalived/scripts/chk_mysql.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # 计划任务,恢复后,可自动拉起keepalived 4 | # bash {$SERVER_PATH}/keepalived/scripts/chk_mysql.sh 5 | 6 | counter=$(netstat -na|grep "LISTEN"|grep "3306"|wc -l) 7 | data_time=`date +'%Y-%m-%d %H:%M:%S'` 8 | 9 | if [ "${counter}" -eq "0" ]; then 10 | echo "${data_time}: start check mysql status, mysql is down, stop keepalive ..." 11 | systemctl stop keepalived 12 | echo "${data_time}: start check mysql end !!!" 13 | fi 14 | 15 | 16 | # 恢复后,自动拉起 17 | # systemctl start keepalived 18 | if [ "${counter}" -gt "0" ]; then 19 | echo "${data_time}: start check mysql status, mysql is up, start keepalive" 20 | 21 | keepalived_status=`which systemctl && systemctl status keepalived | grep Active | grep inactive` 22 | if [ "$keepalived_status" != "" ];then 23 | systemctl start keepalived 24 | fi 25 | 26 | echo "${data_time}: start check mysql end !!!" 27 | fi 28 | -------------------------------------------------------------------------------- /route/static/codemirror/addon/display/fullscreen.js: -------------------------------------------------------------------------------- 1 | (function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){a.defineOption("fullScreen",false,function(d,f,e){if(e==a.Init){e=false}if(!e==!f){return}if(f){b(d)}else{c(d)}});function b(d){var e=d.getWrapperElement();d.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:e.style.width,height:e.style.height};e.style.width="";e.style.height="auto";e.className+=" CodeMirror-fullscreen";document.documentElement.style.overflow="hidden";d.refresh()}function c(d){var e=d.getWrapperElement();e.className=e.className.replace(/\s*CodeMirror-fullscreen\b/,"");document.documentElement.style.overflow="";var f=d.state.fullScreenRestore;e.style.width=f.width;e.style.height=f.height;window.scrollTo(f.scrollLeft,f.scrollTop);d.refresh()}}); -------------------------------------------------------------------------------- /plugins/nezha/init.d/nezha-agent.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Nezha Agent 3 | After=syslog.target 4 | #After=network.target 5 | #After=nezha-dashboard.service 6 | 7 | [Service] 8 | # Modify these two values and uncomment them if you have 9 | # repos with lots of files and get an HTTP error 500 because 10 | # of that 11 | ### 12 | #LimitMEMLOCK=infinity 13 | #LimitNOFILE=65535 14 | Type=simple 15 | User=root 16 | Group=root 17 | WorkingDirectory={$SERVER_PATH}/nezha/agent/ 18 | ExecStart={$SERVER_PATH}/nezha/agent/nezha-agent -s {$APP_HOST} -p {$APP_SECRET} 19 | Restart=always 20 | #Environment=DEBUG=true 21 | 22 | # Some distributions may not support these hardening directives. If you cannot start the service due 23 | # to an unknown option, comment out the ones not supported by your version of systemd. 24 | #ProtectSystem=full 25 | #PrivateDevices=yes 26 | #PrivateTmp=yes 27 | #NoNewPrivileges=true 28 | 29 | [Install] 30 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /route/static/codemirror/addon/edit/continuelist.js: -------------------------------------------------------------------------------- 1 | (function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(b){var d=/^(\s*)(>[> ]*|- \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,c=/^(\s*)(>[> ]*|- \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,a=/[*+-]\s/;b.commands.newlineAndIndentContinueMarkdownList=function(q){if(q.getOption("disableInput")){return b.Pass}var g=q.listSelections(),k=[];for(var m=0;m")>=0?n[2].replace("x"," "):(parseInt(n[3],10)+1)+n[4];k[m]="\n"+j+e+f}}q.replaceSelections(k)}}); -------------------------------------------------------------------------------- /plugins/msonedrive/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PATH=/www/server/panel/pyenv/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin 3 | export PATH 4 | 5 | curPath=`pwd` 6 | rootPath=$(dirname "$curPath") 7 | rootPath=$(dirname "$rootPath") 8 | serverPath=$(dirname "$rootPath") 9 | 10 | install_tmp=${rootPath}/tmp/mw_install.pl 11 | VERSION=$2 12 | 13 | if [ -f ${rootPath}/bin/activate ];then 14 | source ${rootPath}/bin/activate 15 | fi 16 | 17 | Install_App() 18 | { 19 | pip install requests-oauthlib==1.3.0 20 | mkdir -p $serverPath/msonedrive 21 | echo '正在安装脚本文件...' > $install_tmp 22 | 23 | echo "${VERSION}" > $serverPath/msonedrive/version.pl 24 | echo '安装完成' > $install_tmp 25 | 26 | echo "Successify" 27 | } 28 | 29 | 30 | Uninstall_App() 31 | { 32 | rm -rf $serverPath/msonedrive 33 | } 34 | 35 | if [ "${1}" == 'install' ];then 36 | Install_App 37 | elif [ "${1}" == 'uninstall' ];then 38 | Uninstall_App 39 | else 40 | echo 'Error!'; 41 | fi 42 | -------------------------------------------------------------------------------- /plugins/nezha/init.d/nezha.service.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Nezha Dashborad 3 | After=syslog.target 4 | After=network.target 5 | After=mariadb.service mysqld.service postgresql.service memcached.service redis.service 6 | 7 | [Service] 8 | # Modify these two values and uncomment them if you have 9 | # repos with lots of files and get an HTTP error 500 because 10 | # of that 11 | ### 12 | #LimitMEMLOCK=infinity 13 | #LimitNOFILE=65535 14 | Type=simple 15 | #User=root 16 | #Group=root 17 | WorkingDirectory={$SERVER_PATH}/nezha/dashboard/ 18 | ExecStart={$SERVER_PATH}/nezha/dashboard/nezha web 19 | Restart=always 20 | #Environment=DEBUG=true 21 | 22 | # Some distributions may not support these hardening directives. If you cannot start the service due 23 | # to an unknown option, comment out the ones not supported by your version of systemd. 24 | ProtectSystem=full 25 | PrivateDevices=yes 26 | PrivateTmp=yes 27 | NoNewPrivileges=true 28 | 29 | [Install] 30 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /plugins/keepalived/tpl/keepalived.lvs.nat.master.conf: -------------------------------------------------------------------------------- 1 | # keepalived for lvs-nat 2 | # 未测试通过 3 | 4 | global_defs { 5 | router_id HA_LVS 6 | } 7 | 8 | vrrp_sync_group HA_LVS_NAT { 9 | group { 10 | HA_LVS_NAT 11 | } 12 | } 13 | 14 | vrrp_instance HA_LVS_NAT { 15 | state MASTER 16 | interface bond1 17 | virtual_router_id 222 18 | priority 100 19 | advert_int 1 20 | nopreempt 21 | authentication { 22 | auth_type PASS 23 | auth_pass 1111 24 | } 25 | virtual_ipaddress { 26 | 192.168.212.100/25 dev bond1 27 | } 28 | } 29 | 30 | virtual_server 192.168.212.100 80 { 31 | delay_loop 6 32 | lb_algo rr 33 | lb_kind NAT 34 | protocol TCP 35 | 36 | real_server 192.168.212.129 80 { 37 | weight 100 38 | TCP_CHECK { 39 | connect_timeout 3 40 | nb_get_retry 3 41 | delay_before_retry 3 42 | connect_port 15000 43 | } 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /data/sql/system.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE IF NOT EXISTS `network` ( 2 | `id` INTEGER PRIMARY KEY AUTOINCREMENT, 3 | `up` INTEGER, 4 | `down` INTEGER, 5 | `total_up` INTEGER, 6 | `total_down` INTEGER, 7 | `down_packets` INTEGER, 8 | `up_packets` INTEGER, 9 | `addtime` INTEGER 10 | ); 11 | 12 | CREATE TABLE IF NOT EXISTS `cpuio` ( 13 | `id` INTEGER PRIMARY KEY AUTOINCREMENT, 14 | `pro` INTEGER, 15 | `mem` INTEGER, 16 | `addtime` INTEGER 17 | ); 18 | 19 | CREATE TABLE IF NOT EXISTS `diskio` ( 20 | `id` INTEGER PRIMARY KEY AUTOINCREMENT, 21 | `read_count` INTEGER, 22 | `write_count` INTEGER, 23 | `read_bytes` INTEGER, 24 | `write_bytes` INTEGER, 25 | `read_time` INTEGER, 26 | `write_time` INTEGER, 27 | `addtime` INTEGER 28 | ); 29 | 30 | CREATE TABLE IF NOT EXISTS `load_average` ( 31 | `id` INTEGER PRIMARY KEY AUTOINCREMENT, 32 | `pro` REAL, 33 | `one` REAL, 34 | `five` REAL, 35 | `fifteen` REAL, 36 | `addtime` INTEGER 37 | ); --------------------------------------------------------------------------------