#### What this PR does / why we need it? 修复网站日志文件较大时,在界面上查看日志会导致系统短时间卡住的问题 相关Issue https://github.com/1Panel-dev/1Panel/issues/495 该提交可优化这个Issue的问题 #### Summary of your change 在获取文件内容之前,通过os.Stat获取文件的信息,并对文件大小进行判断,如果过大(目前是>10MB),则抛出错误中止流程 #### Please indicate you've done the following: - [ ] Made sure tests are passing and test coverage is added if needed. - [x] Made sure commit message follow the rule of [Conventional Commits specification](https://www.conventionalcommits.org/). - [ ] Considered the docs impact and opened a new docs issue or PR with docs changes if needed.
Modern and Open-Source Linux Server Operation and Management Panel
1Panel is a modern and Open-Source linux server operation and management panel, the functions and advantages of 1Panel include:
- Quick website building: Deeply integrated with Wordpress and Halo, with one-click solutions for domain name binding, SSL certificate configuration, and more;
- Efficient management: Easily manage Linux servers through the web interface, including application management, host monitoring, file management, database management, container management, and more;
- Secure and reliable: Minimal vulnerability exposure, with firewall and security audit functions provided;
- One-click backup: Support for one-click backup and restore, with backup data stored in the cloud and never lost.
UI Display
Quick Start
Online Demo
- Address: https://demo.1panel.cn/
- Username: demo
- Password: 1panel
One-Click Installation
Execute the following command to install 1Panel with one click:
curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sudo bash quick_start.sh
Learning Materials
Community
If you have any questions or suggestions, please submit a GitHub Issue or join our WeChat group for communication.
WeChat Group
Security Information
If you discover any security issues, please contact us through:
- Email: support@fit2cloud.com
- Phone: 400-052-0755
Star History
License
Copyright (c) 2014-2023 FIT2CLOUD 飞致云, All rights reserved.
Licensed under The GNU General Public License version 3 (GPLv3) (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.gnu.org/licenses/gpl-3.0.html
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.