🔥 🔥 🔥 现代化、开源的 Linux 服务器运维管理面板。
Find a file
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
.github 删除 issue 处理相关 workflow (#339) 2023-03-21 06:40:31 +00:00
backend fix: 获取网站日志时,先检查一下日志文件大小,超过10M时直接报错 (#1011) 2023-05-12 02:54:23 +00:00
cmd/server feat: app.yaml 增加 username 和 password 参数 (#960) 2023-05-09 09:31:44 +00:00
frontend fix: 解决安全入口跳转失败的问题 (#995) 2023-05-10 15:28:18 +00:00
.gitattributes feat: add .gitattributes file 2022-08-17 14:47:34 +08:00
.gitignore feat: 修改 .gitignore 规则 2023-03-17 09:02:29 +00:00
CODE_OF_CONDUCT.md feat: 添加社区健康文件和 issues 模版 2022-08-17 14:19:20 +08:00
CONTRIBUTING.md feat: 添加社区健康文件和 issues 模版 2022-08-17 14:19:20 +08:00
go.mod fix: ntp 依赖修改 (#983) 2023-05-10 06:36:15 +00:00
go.sum fix: ntp 依赖修改 (#983) 2023-05-10 06:36:15 +00:00
LICENSE feat: first-commit 2022-08-17 09:37:30 +08:00
Makefile refactor: edit Makefile 2023-04-10 10:35:53 +08:00
OWNERS feat: 增加 OWNERS 文件 2023-03-15 15:39:02 +08:00
README.md Update README.md (#1005) 2023-05-11 23:27:01 +08:00
README_EN.md Pr@dev@docs add readme en.md (#378) 2023-03-23 11:43:43 +08:00
SECURITY.md 增加安全问题联系人 (#882) 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.