mirror of https://github.com/flucont/btcloud.git

12 changed files with 126 additions and 113 deletions
-
2app/script/convert.sh
-
2app/view/admin/layout.html
-
117public/install/install_btmonitor.sh
-
BINpublic/install/src/bt-monitor-2.3.1.zip
-
BINpublic/install/src/panel6.zip
-
BINpublic/install/src/panel_7_en.zip
-
BINpublic/install/update/LinuxPanel-11.0.0.zip
-
BINpublic/install/update/LinuxPanel_EN-7.0.21.zip
-
18wiki/aapanel.md
-
98wiki/btmonitor.md
-
2wiki/files/btmonitor/PluginLoader.py
@ -1,53 +1,45 @@ |
|||||
# 宝塔云监控安装包修改记录 |
|
||||
|
|
||||
查询最新版本号:https://api.bt.cn/bt_monitor/latest_version |
|
||||
|
|
||||
安装包下载链接:http://download.bt.cn/install/src/bt-monitor-版本号.zip |
|
||||
|
|
||||
- 删除core/include/c_loader/PluginLoader.so,sqlite_server/PluginLoader.so,将btmonitor/PluginLoader.py复制到这个文件夹 |
|
||||
|
|
||||
- 批量解密源码:执行 php think decrypt all <源码根目录> |
|
||||
|
|
||||
极少数文件解密失败是正常现象可无视 |
|
||||
|
|
||||
- 全局搜索替换 https://api.bt.cn => http://www.example.com(需排除/bt_monitor/latest_agent_version、/bt_monitor/ip_info) |
|
||||
|
|
||||
- 全局搜索替换 https://www.bt.cn/api/ => http://www.example.com/api/ |
|
||||
|
|
||||
- core/include/public.py 在 |
|
||||
|
|
||||
```python |
|
||||
def GetConfigValue(key): |
|
||||
``` |
|
||||
|
|
||||
这一行下面加上 |
|
||||
|
|
||||
```python |
|
||||
if key == 'home': return 'http://www.example.com' |
|
||||
``` |
|
||||
|
|
||||
def write_request_log(reques = None): 这一行下面加上 return |
|
||||
|
|
||||
- core/include/basic_monitor.py |
|
||||
|
|
||||
在 def report_module_logs(self, force=False): 这一行下面加上 return |
|
||||
|
|
||||
- modules/configModule/main.py |
|
||||
|
|
||||
https://download.bt.cn => http://www.example.com |
|
||||
|
|
||||
- update/update_btmonitor.sh 修改Install_Monitor方法内的download_Url变量 |
|
||||
|
|
||||
- init.sh https://download.bt.cn => http://www.example.com |
|
||||
|
|
||||
- BT-MONITOR 在 |
|
||||
|
|
||||
```python |
|
||||
def CreateSSL(): |
|
||||
``` |
|
||||
|
|
||||
这一行下面加上 |
|
||||
|
|
||||
```python |
|
||||
return CreateSSL_offline() |
|
||||
``` |
|
||||
|
# 宝塔云监控安装包修改记录 |
||||
|
|
||||
|
查询最新版本号:https://api.bt.cn/bt_monitor/latest_version |
||||
|
|
||||
|
安装包下载链接:http://download.bt.cn/install/src/bt-monitor-版本号.zip |
||||
|
|
||||
|
- 删除core/include/c_loader/PluginLoader.so,sqlite_server/PluginLoader.so,将btmonitor/PluginLoader.py复制到这个文件夹 |
||||
|
|
||||
|
- 批量解密源码:执行 php think decrypt all <源码根目录> |
||||
|
|
||||
|
极少数文件解密失败是正常现象可无视 |
||||
|
|
||||
|
- 全局搜索替换 https://api.bt.cn => http://www.example.com(需排除/bt_monitor/latest_agent_version、/bt_monitor/ip_info) |
||||
|
|
||||
|
- 全局搜索替换 https://www.bt.cn/api/ => http://www.example.com/api/ |
||||
|
|
||||
|
- core/include/public.py 在 |
||||
|
|
||||
|
```python |
||||
|
def GetConfigValue(key): |
||||
|
``` |
||||
|
|
||||
|
这一行下面加上 |
||||
|
|
||||
|
```python |
||||
|
if key == 'home': return 'http://www.example.com' |
||||
|
``` |
||||
|
|
||||
|
def write_request_log(reques = None): 这一行下面加上 return |
||||
|
|
||||
|
- core/include/basic_monitor.py |
||||
|
|
||||
|
在 def report_module_logs(self, force=False): 这一行下面加上 return |
||||
|
|
||||
|
在 def report_daily_active(self, force=False): 这一行下面加上 return |
||||
|
|
||||
|
- modules/configModule/main.py |
||||
|
|
||||
|
https://download.bt.cn => http://www.example.com |
||||
|
|
||||
|
- update/update_btmonitor.sh 修改Install_Monitor方法内的download_Url变量 |
||||
|
|
||||
|
- init.sh https://download.bt.cn => http://www.example.com |
||||
|
|
||||
|
- 减少压缩包体积:删除 static/js/ 目录下的map文件 |
Write
Preview
Loading…
Cancel
Save
Reference in new issue