Commit graph

3581 commits

Author SHA1 Message Date
CityFun
4ac490c6b4
fix: Fixed issue with website config menu lost (#9473)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 6s
2025-07-09 07:26:55 +00:00
ssongliu
0d548c7df9
fix: Fix http image registry edit exception (#9460)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 2s
2025-07-08 18:18:00 +08:00
ssongliu
8ec5a5bd4b
fix: Fix menu internationalization issues (#9456)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 8s
2025-07-08 06:05:55 +00:00
ssongliu
2e8bcc09e6
fix: Fix dashboard refresh exception issue (#9455) 2025-07-08 04:15:53 +00:00
ssongliu
29a304e2c8
fix: Optimize container image repo restart detection logic (#9447) 2025-07-08 02:47:53 +00:00
ssongliu
b1adc37920
fix: Modify OneDrive default connection settings (#9440)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 9s
2025-07-07 10:05:50 +00:00
CityFun
03fac3ec06
fix: Resolve the issue of lost GPU configuration after upgrade ollama (#9362)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 2s
2025-07-01 07:47:33 +00:00
6e465ac215
fix: Fix the issue of multiple selection moving folder errors (#9319)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 5s
refs: #8612
2025-06-27 06:03:24 +00:00
ssongliu
21bbadc37b
fix: Resolve abnormal state after Docker restart (#9305)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 4s
2025-06-26 11:19:22 +00:00
ssongliu
3061d640ce
fix: Modify the service status judgment logic (#9301)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 3s
2025-06-26 17:18:14 +08:00
ssongliu
874717cbcd
fix: Remove code comments (#9297) 2025-06-26 06:39:22 +00:00
ssongliu
6850acabae
fix: Optimize supervisor initialization logic (#9295) 2025-06-26 06:29:23 +00:00
ssongliu
890ea42749
fix: Fix ClamAV service name detection issue (#9292) 2025-06-26 14:27:57 +08:00
ssongliu
6aaf61cde4
fix: Increase systemctl operation timeout (#9281)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 4s
2025-06-25 08:21:22 +00:00
wanghe-fit2cloud
73930c5e29 feat: Compatible with system upgrades for v1.10.30 and earlier versions
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 3s
2025-06-24 17:32:23 +08:00
ssongliu
8f8d280e90
Revert "fix: Fix the issue with upgrade failures (#9262)" (#9264)
This reverts commit b46192024f.
2025-06-24 17:24:42 +08:00
ssongliu
b46192024f
fix: Fix the issue with upgrade failures (#9262) 2025-06-24 08:51:13 +00:00
ssongliu
8f939ad5be
fix: Make firewall operations compatible with OpenWrt (#9257) 2025-06-24 06:21:13 +00:00
ssongliu
a6363ce4e5
fix: Fix the issue with cronjob report loading failure (#9254)
Refs #8684
2025-06-24 05:47:14 +00:00
ssongliu
fd490b2642
fix: Modify the image repository validation rules (#9253)
Refs #8870
2025-06-24 05:45:13 +00:00
ssongliu
7624670ee0
fix: Add a restart prompt for HTTP-type mirror repositories (#9252)
Refs #8978
2025-06-24 05:43:14 +00:00
ssongliu
8c3145e1c6
fix: Fix the problem of ip changes in container upgrades for macvlan … (#9251)
Refs #8950
2025-06-24 05:41:13 +00:00
ssongliu
bec7b6989f
fix: Fix the issue of abnormal highlighting in the cronjob script (#9246)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 4s
Refs #8683
2025-06-23 10:40:14 +00:00
CityFun
326f2654e6
feat: add PbootCMS extensions template for php runtime (#9243) 2025-06-23 18:37:47 +08:00
CityFun
708499a335
feat: fix issue with build frontend failed (#8994)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 13m52s
2025-06-10 08:56:35 +00:00
CityFun
bdeb842939
feat: change 1panel v1 docs url (#8993) 2025-06-10 08:16:34 +00:00
王贺
edefdce3ff
docs: Update the installation script (#8979) 2025-06-10 11:03:13 +08:00
longjuan
b348c36571
feat: add name attrs to login inputs for password managers to recognize (#8953)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -22s
2025-06-09 11:26:02 +08:00
玲珑芯ExquisiteCore
6ae150b64e
feat: Move current status to first position in MySQL settings and set… (#8882)
Some checks failed
SonarCloud Scan / SonarCloud (push) Has been cancelled
* feat: Move current status to first position in MySQL and Redis settings and set as default tab
2025-06-03 10:22:00 +08:00
maninhill
3687b9bea2 chore: Update README.md
Some checks failed
SonarCloud Scan / SonarCloud (push) Has been cancelled
2025-05-25 16:42:01 +08:00
maninhill
711431da82 Update README.md 2025-05-25 16:40:02 +08:00
Alan
e93afc33aa
ini filetype support (#8628)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -2s
2025-05-14 16:52:41 +08:00
CityFun
82dd993751
fix: Fix issue with update website config (#8610)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -4s
2025-05-12 10:41:58 +00:00
Wankko Ree
9ba293e154
fix: the docker image which no tag but used be pruned (#8529)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 5s
2025-05-03 13:25:24 +08:00
igophper
8fa9f128d8
fix(cronjob): prevent unnecessary log updates and clean log formatting (#8481)
Some checks failed
SonarCloud Scan / SonarCloud (push) Has been cancelled
Refs #8425
2025-04-28 09:09:48 +08:00
maninhill
ed9f1599e6 chore: Update README.md
Some checks failed
SonarCloud Scan / SonarCloud (push) Has been cancelled
2025-04-25 11:38:18 +08:00
igophper
787a29769d
fix(editor): reset edit state after not saving content (#8474)
Refs #8461
2025-04-25 11:13:23 +08:00
巴山夜语
6b379389d3
WIP: refactor(service): Refactor OpenRC service manager (#8416)
Some checks failed
SonarCloud Scan / SonarCloud (push) Has been cancelled
* refactor(service): 重构 OpenRC 服务管理器

- 更新 IsEnabled 和 IsActive 检查逻辑,使用更可靠的命令
- 修复 ServiceExists 检查,直接使用文件路径判断
- 优化 FindServices 函数,扫描 /etc/init.d 目录
- 调整 BuildCommand 函数,支持 OpenRC 特定操作
- 修改 ParseStatus 函数,使用更新后的正则表达式

* feat(backend): 优化 Fail2ban 初始化配置以支持 Alpine 系统

- 增加对 Alpine 系统的特殊配置支持
- 改进防火墙类型检测逻辑,支持多种防火墙服务
- 增加 SSH 端口和认证日志路径的自动检测
- 优化配置文件模板,提高兼容性和安全性

* refactor(backend): 重构 SSH 日志解析功能

- 改进了对不同日志格式的支持,包括 secure, auth 和 messages 文件
- 优化了日志解析逻辑,提高了代码的可读性和可维护性
- 增加了对 RFC3339 时间格式的支持
- 改善了对失败登录尝试的解析,包括无效用户和连接关闭的情况
- 重构了日期解析和 IP 地址验证的逻辑

* refactor(upgrade): 优化升级服务中的初始化脚本选择逻辑

- 新增 selectInitScript 函数,根据系统初始化管理器类型选择合适的初始化脚本
- 支持 systemd、openrc 和 sysvinit 三种初始化管理器
- 对于 sysvinit,增加对 /etc/rc.common 文件存在性的判断,以区分不同的初始化脚本
- 默认情况下使用当前服务名称作为初始化脚本名称

* fix(upgrade): 修复升级时初始化脚本更新问题

- 修改了 criticalUpdates 数组中的服务脚本更新逻辑
- 在 selectInitScript 函数中增加了复制脚本文件的逻辑,以应对服务名和脚本名不一致的情况

* feat(snap): 添加初始化脚本到快照

- 在创建快照时,将服务脚本复制到 initscript 目录
- 然后将整个 initscript 目录复制到快照的目标目录
- 添加了日志输出,便于调试和记录

* refactor(backend): 重构快照恢复流程

- 移除了未使用的 import 语句
- 删除了注释掉的代码块
- 修改了 1Panel 服务恢复的逻辑,增加了对当前服务名称的获取
- 快照恢复过程中,根据宿主机类型,自动选择初始化服务脚本
- 添加了日志输出以提高可追踪性
- 优化了文件路径的处理方式

---------

Co-authored-by: gcsong023 <gcsong023@users.noreply.github.com>
2025-04-23 17:04:08 +08:00
ChengPlay
5bcbf32823
Fix issue with errors when reverse proxy source text includes comments. (#8444)
Some checks are pending
SonarCloud Scan / SonarCloud (push) Waiting to run
Refs https://github.com/1Panel-dev/1Panel/issues/8442
2025-04-22 07:51:06 +00:00
maninhill
0aa90e1b2d chore: Update README.md
Some checks failed
SonarCloud Scan / SonarCloud (push) Has been cancelled
2025-04-19 09:59:23 +08:00
maninhill
a7b87211b4 chore: Update README.md 2025-04-19 09:53:46 +08:00
maninhill
2c666933a5 chore: Update README.md 2025-04-19 09:43:31 +08:00
maninhill
f280b533c6 Update README.md 2025-04-19 09:42:05 +08:00
wanghe-fit2cloud
47a16bc9a9 chore(build): optimize build script
Some checks are pending
SonarCloud Scan / SonarCloud (push) Waiting to run
2025-04-18 14:48:50 +08:00
ChengPlay
713202b6eb
feat: update golang.org/x/net version (#8412)
Some checks are pending
SonarCloud Scan / SonarCloud (push) Waiting to run
2025-04-17 03:02:20 +00:00
巴山夜语
79020abb1c
feat(systemctl): implement service manager initialization and command execution (#8380)
* feat(systemctl): 实现服务管理器初始化和命令执行

- 新增 systemctl 包,实现对 systemd、openrc 和 sysvinit 三种服务管理器的支持
- 添加服务状态检查、启动、停止、重启和启用/禁用功能
- 实现服务发现和智能服务名处理
- 添加配置文件查看功能
- 优化错误处理和日志记录

* refactor(system): 重构系统服务管理逻辑

- 引入 systemctl 工具包以统一处理系统服务
- 优化服务状态获取、配置文件路径解析等逻辑
- 重构 HostToolService 中的 GetToolStatus 方法
- 更新 DockerService、SettingService 等相关服务的处理方式
- 调整快照创建和恢复过程中的服务处理逻辑

* feat(utils): 添加目录复制功能并优化文件复制逻辑

- 新增 CopyDirs 函数,用于复制整个目录及其内容
- 添加对符号链接的复制支持
- 实现通用的 Copy 函数,根据文件类型自动选择 CopyFile 或 CopyDirs
- 在 CopyFile 函数中增加对源文件是目录的检查和错误提示

* refactortoolbox: 重构 Fail2ban 和 Pure-FTPd 的管理逻辑

- 优化了 Fail2ban 和 Pure-FTPd 的启动、停止、重启等操作的实现
- 改进了 Fail2ban 版本信息的获取方法
- 统一了错误处理和日志记录的格式
- 调整了部分导入的包,提高了代码的可维护性

* build: 禁用 CGO 以提高构建性能和兼容性

- 在 Linux 后端构建命令中添加 CGO_ENABLED=0 环境变量
- 此修改可以提高构建速度,并确保生成的二进制文件在没有 C 库依赖的环境中也能运行

* refactor(docker): 重构 Docker 服务的重启和操作逻辑

- 添加 isDockerSnapInstalled 函数来判断 Docker 是否通过 Snap 安装
- 在 OperateDocker 和 restartDocker 函数中增加对 Snap 安装的处理
- 移除未使用的 getDockerRestartCommand 函数

* fix(service): 优化快照恢复后的服务重启逻辑

- 在使用 systemd 管理服务时,增加 daemon-reload 操作以确保服务配置更新
- 重启 1panel 服务,以应用快照恢复的更改

* refactor(server): 支持非 systemd 系统的恢复操作

- 增加 isSystemd 函数判断系统是否为 systemd 类型
- 根据系统类型选择性地恢复服务文件
- 兼容 systemd 和非 systemd 系统的恢复流程

* fix(upgrade): 优化升级过程中的服务重启逻辑

- 移动服务重启逻辑到版本号更新之后,修复因提前重启导致的版本号未更新BUG。
- 在 systemctl 重启之前添加 daemon-reload 命令

---------

Co-authored-by: gcsong023 <gcsong023@users.noreply.github.com>
2025-04-17 10:26:13 +08:00
chiichen
83ef41cf1a
feat: basic support riscv64 (#8369)
* feat: add riscv64

* feat: correct arch related codes
2025-04-17 10:24:04 +08:00
dependabot[bot]
91675c69e9
chore(deps): bump golang.org/x/crypto from 0.32.0 to 0.35.0 (#8400)
Some checks failed
SonarCloud Scan / SonarCloud (push) Has been cancelled
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.32.0 to 0.35.0.
- [Commits](https://github.com/golang/crypto/compare/v0.32.0...v0.35.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.35.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-15 11:41:42 +08:00
ChengPlay
0e68065b40
feat: change commandPlaceHolder translate (#8391)
Some checks are pending
SonarCloud Scan / SonarCloud (push) Waiting to run
2025-04-14 08:56:12 +00:00
ssongliu
600b769083
fix: Fix the mysql root account permission switchover exception (#8378)
Some checks failed
SonarCloud Scan / SonarCloud (push) Has been cancelled
2025-04-11 07:08:02 +00:00