Commit graph

550 commits

Author SHA1 Message Date
巴山夜语
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
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
ssongliu
a5629e3f42
fix: Fix the problem of failed MySQL permission modification (#8351) 2025-04-08 10:49:53 +00:00
zhengkunwang
3437d62f31
feat: Website SSL DNS Type support WestCN (#8305)
Some checks failed
SonarCloud Scan / SonarCloud (push) Has been cancelled
2025-04-02 10:21:54 +00:00
ssongliu
dc880835d0
fix: Modify the container terminal connection mode (#8301) 2025-04-02 10:19:54 +00:00
zhengkunwang
bba8aab18c
feat: Add MCP management (#8299) 2025-04-02 09:01:54 +00:00
ssongliu
d96fe49993
fix: Resolve cloudns reference error (#8293) 2025-04-02 03:41:53 +00:00
sunsky
ed12bec460
feat: add DNS provider ClouDNS (#8207)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 10m28s
* feat: add DNS provider ClouDNS

* feat: ClouDNS account parameter validation
2025-03-25 10:12:14 +08:00
ssongliu
79eb0288b4
fix: Fix the problem that the terminal exit fails (#8189)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -28s
2025-03-19 03:43:21 +00:00
ssongliu
5610c73d67
fix: Fix the problem that services exit unexpectedly when the contain… (#8127)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -22s
2025-03-12 03:19:03 +00:00
lm379
8f491b2933
feat: allow tencent cloud cos dual stack domain (#8123)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -23s
Co-authored-by: lm379 <lm379@qq.com>
2025-03-11 23:58:23 +08:00
ssongliu
38ca2ddd01
fix(container): Fix cpu surge when the container terminal executes exit (#8115)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -21s
2025-03-10 23:47:50 +08:00
ssongliu
402b41100b
fix(container): Fix cpu surge when the container terminal executes exit (#8096)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -19s
Refs #7574
2025-03-07 11:06:59 +00:00
ssongliu
b1373ff77e
feat: Support gpu of schema v11 (#7988) 2025-02-25 14:16:34 +08:00
Johannes Plunien
358415f737
feat: Support freemyip.com DNS provider (#7958) 2025-02-24 10:21:37 +08:00
zhengkunwang
e492c6573c
feat: Modified the logic for AI Tool (#7894) 2025-02-18 05:59:10 +00:00
zhengkunwang
f6ee3dc75b
feat: Added streaming transmission configuration (#7875)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 12m4s
2025-02-15 12:59:38 +00:00
zhengkunwang
078d7fbe1e
feat: Add AI-enhanced configuration (#7870) 2025-02-14 06:26:05 +00:00
endymx
0741f60896
fix(iptables): 复杂环境下转发删除端口错误 (#7868) 2025-02-13 22:56:09 +08:00
ssongliu
af8eef4a91
feat: Support Ollama model management (#7866)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -3s
2025-02-13 15:28:29 +08:00
ssongliu
afa8cf22b1
feat: Add function backups by default for MySQL and MariaDB databases. (#7823)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 1s
2025-02-08 22:56:46 +08:00
endymx
7905dd00a6
fix(firewall): 删除复杂转发规则时报错 (#7791)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 10s
2025-02-05 18:37:42 +08:00
zhengkunwang
aaaa5980b5
feat: Added password encryption for login functionality (#7764)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -9s
2025-01-23 18:09:12 +08:00
zhengkunwang
9c376300ff
feat(ssl): Add Support for Rain Yun in DNS Account (#7613)
Refs https://github.com/1Panel-dev/1Panel/issues/7115
2024-12-31 09:55:54 +00:00
endymx
55bb997d51
feat(iptables): Support forwarding for complex networks (#7598)
* feat(iptables): 支持对复杂网络的转发

* refactor(iptables): 提供更完善的接口和报错
2024-12-30 13:55:53 +08:00
ssongliu
7c46f54e15
fix: Fix the issue of failure to retrieve firewall status (#7597)
Refs #7527
2024-12-30 05:37:49 +00:00
ssongliu
6dbb6d2247
fix: Fix the issue of backup failure due to complex passwords in the pg (#7596) 2024-12-30 13:36:51 +08:00
zhengkunwang
69ad01687e
feat: Optimize Location Information Display in System Login Logs (#7459) 2024-12-20 04:16:25 +00:00
Bryan
3108c927af
fix: typos (#7405) 2024-12-18 14:04:51 +08:00
ssongliu
fa86c4f39a
fix: Fixed an issue where the language pack initialization download f… (#7375) 2024-12-16 09:00:10 +00:00
ssongliu
aaf1d86a55
fix(database-pg): Fixed the issue of PostgreSQL not being able to back up. (#7324) 2024-12-11 06:25:43 +00:00
zhengkunwang
162a0c543c
feat: Fix Issue with DNS Account Deletion After Certificate Update Ap… (#7303)
Refs https://github.com/1Panel-dev/1Panel/issues/7300
2024-12-10 03:15:38 +00:00
873bba92db
Fix: Postgres fails to connect when using special characters (#7269)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 4s
2024-12-06 10:19:41 +08:00
Cookie
5be325405d
Fix: Postgres fails to connect when using special characters (#7262)
* Update client.go

* Update remote.go

* Update client.go
2024-12-05 16:00:52 +08:00
zhengkunwang
23087bdb6f
feat(logs): Change IP Database to Support Internationalization (#7212)
change ip database from qqwry to geoip
2024-11-29 03:46:44 +00:00
ssongliu
7fdb0a5078
fix: Fixed the fault in determining the firewall port forwarding version (#7150) 2024-11-22 02:16:14 +00:00
ssongliu
a8aa1f87f2
fix: Fixed the fault in determining the firewall port forwarding version (#7141) 2024-11-21 09:30:10 +00:00
igophper
af41e8e429
feat: 增加DNS服务商CloudDNS (#7081)
Refs #7038
2024-11-15 16:46:45 +08:00
刘瑞斌
3a400dd15a
feat: 增加火山引擎DNS (#7006) 2024-11-15 11:27:41 +08:00
Xiao Tan
ee947b6468
fix: 修复 pure-ftpd 上传缓慢问题 (#6994)
* fix: 修复 pure-ftpd 上传缓慢问题

* fix: 修复 pure-ftpd 修改密码用户名的判断依据

---------

Co-authored-by: BH1XAQ <tanxiao@16iot.cn>
2024-11-12 09:27:21 +08:00
ssongliu
8d35c54672
fix: 优化防火墙端口转发错误信息 (#6967) 2024-11-06 08:31:19 +00:00
ssongliu
cf1d02771f
fix: 解决 Docker 重启失败的问题 (#6805) 2024-10-22 09:42:28 +00:00
Ludovic Fernandez
e531b509d6
fix: huawei cloud (#6791) 2024-10-21 22:15:32 +08:00
zhengkunwang
5105114321
fix: 解决网站开启 HTTPS 之后 404 配置丢失的问题 (#6775)
Some checks failed
Build Test / build-linux-binary (push) Failing after 8s
Build / SonarCloud (push) Failing after 4s
sync2gitee / repo-sync (push) Failing after 2s
2024-10-18 09:17:38 +00:00
acf94b052b
feat: 增加病毒扫描和计划任务告警 (#6709)
Some checks failed
Build Test / build-linux-binary (push) Failing after 8s
Build / SonarCloud (push) Failing after 7s
sync2gitee / repo-sync (push) Failing after 4s
2024-10-14 09:51:17 +00:00
zzz
175b7b89e4
feat:firewalld和ufw同时存在时,不进行操作 (#6688)
Some checks failed
Build Test / build-linux-binary (push) Has been cancelled
Build / SonarCloud (push) Has been cancelled
sync2gitee / repo-sync (push) Has been cancelled
Co-authored-by: zengzz01 <zengzz01@mingyuanyun.com>
2024-10-11 18:03:33 +08:00
zhengkunwang
b091c7f364
feat: 反向代理文本替换增加 sub_filter_types 参数 (#6661)
Some checks are pending
Build Test / build-linux-binary (push) Waiting to run
Build / SonarCloud (push) Waiting to run
sync2gitee / repo-sync (push) Waiting to run
Refs https://github.com/1Panel-dev/1Panel/issues/6490
2024-10-09 07:02:56 +00:00
ssongliu
0e6fdffeec
feat: S3 备份账号支持 Path Style (#6489)
Some checks failed
Build Test / build-linux-binary (push) Failing after -8m57s
Build / SonarCloud (push) Failing after -8m59s
sync2gitee / repo-sync (push) Failing after -9m1s
Refs #4553
2024-09-13 10:42:27 +00:00
endymx
f77681b9c9
feat(ssl证书): 实现华为云dns (#6407)
Some checks failed
Build Test / build-linux-binary (push) Failing after -8m57s
Build / SonarCloud (push) Failing after -8m59s
sync2gitee / repo-sync (push) Failing after -9m2s
2024-09-13 10:53:06 +08:00
0122b4c6ce
fix: 解决主机文件压缩解压特殊字符问题 (#6451) 2024-09-11 08:20:15 +00:00