1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 08:19:15 +08:00
Mystery0 M 4c39955f2f
fix: 获取网站日志时,先检查一下日志文件大小,超过10M时直接报错 (#1011)
#### 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.
2023-05-12 02:54:23 +00:00
2022-08-17 14:47:34 +08:00
2023-03-17 09:02:29 +00:00
2023-05-10 06:36:15 +00:00
2023-05-10 06:36:15 +00:00
2022-08-17 09:37:30 +08:00
2023-04-10 10:35:53 +08:00
2023-03-15 15:39:02 +08:00
2023-05-11 23:27:01 +08:00
2023-05-05 09:33:34 +00:00

中文 README.md

1Panel

Modern and Open-Source Linux Server Operation and Management Panel

License: GPL v3 Codacy GitHub release Stars


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

UI Display

Quick Start

Online Demo

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:

Star History

Star History Chart

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.

Description
🔥 Top-Rated Web-Based Linux Server Management Tool. 1Panel features an intuitive web interface that seamlessly integrates server management and monitoring, container management, database administration, website management, system backup and restoration, and more.
Readme GPL-3.0 86 MiB
Languages
Go 58.2%
Vue 41.8%