Commit graph

1475 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
chiichen
83ef41cf1a
feat: basic support riscv64 (#8369)
* feat: add riscv64

* feat: correct arch related codes
2025-04-17 10:24:04 +08:00
zhengkunwang
e7670f96de
feat: update mcp proxy_pass (#8374)
Some checks are pending
SonarCloud Scan / SonarCloud (push) Waiting to run
2025-04-10 16:45:24 +08:00
zhengkunwang
342c04b30a
fix: fix issue with mcp bind website (#8356)
Some checks failed
SonarCloud Scan / SonarCloud (push) Has been cancelled
2025-04-09 03:55:56 +00:00
ssongliu
a5629e3f42
fix: Fix the problem of failed MySQL permission modification (#8351) 2025-04-08 10:49:53 +00:00
zhengkunwang
515d6ca500
fix: fix bug with mcp-server status error (#8349) 2025-04-08 09:21:53 +00:00
zhengkunwang
c0ccc0318d
feat: add warn text for mcp server (#8346) 2025-04-08 05:55:52 +00:00
ssongliu
170bd22062
fix: Modify database verification rules (#8342) 2025-04-08 02:39:52 +00:00
zhengkunwang
097a33c68f
style: update style for mcp server (#8338)
Some checks are pending
SonarCloud Scan / SonarCloud (push) Waiting to run
2025-04-07 11:09:51 +00:00
zhengkunwang
a12ceaee6e
feat: add config for mcp server (#8331) 2025-04-07 07:41:51 +00:00
ssongliu
aed236cbc9
fix: Ignore the scheduled task backup content failed to be uploaded (#8297)
Refs #7869
2025-04-02 09:05:54 +00:00
ssongliu
90be74504e
feat: Support the retention of remote backup files when deleting sche… (#8296)
Refs #8236
2025-04-02 09:03:55 +00:00
zhengkunwang
bba8aab18c
feat: Add MCP management (#8299) 2025-04-02 09:01:54 +00:00
ssongliu
47d135ecca
fix: Optimize database password verification and password change (#8294) 2025-04-02 16:03:44 +08:00
ssongliu
6798d0c7ee
fix: Fixed an update failure when the container network is bridge (#8290)
Refs #8209
2025-04-02 03:37:53 +00:00
ssongliu
51fe02661f
fix: Fix the problem of incorrect calculation of container memory res… (#8125)
Refs #8033
2025-03-12 02:13:03 +00:00
ssongliu
766beae4e1
fix(container): Fix the problem that a container cannot create a read… (#8095)
Refs #8074
2025-03-07 07:44:59 +00:00
igophper
33d4ade1d4
refactor(container): optimize memory calculation and concurrent data handling (#8038)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -15s
* refactor(container): optimize memory calculation and concurrent data handling

Refs #8033

* Update container.go

---------

Co-authored-by: ssongliu <73214554+ssongliu@users.noreply.github.com>
2025-03-03 17:38:32 +08:00
zhengkunwang
67c1bf2924
feat: Add certificate validation when creating AI Proxy (#7994)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -9s
2025-02-25 15:21:16 +08:00
zhengkunwang
1c052b7c13
fix: Fix the issue with AI proxy certificate res error (#7983)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -8s
2025-02-24 22:24:51 +08:00
ssongliu
b61dae638b
fix(forward): Fix the problem of duplicate creation of port forwardin… (#7975)
Refs #7969
2025-02-24 09:21:14 +00:00
ssongliu
0f0099accb
fix: Fix the issue of loading errors for editing container port data (#7945)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -9s
Refs #7938
2025-02-21 04:01:49 +00:00
ssongliu
2bb0f15973
fix: Fix the loading method of slow logs in MySQL and MariaDB (#7915)
Refs #6353
2025-02-19 09:48:36 +00:00
ssongliu
c329fb6599
feat: Support for terminal operation with the Ollama model (#7907) 2025-02-19 14:07:05 +08:00
zhengkunwang
ea1261b48e
feat: Added partial prompt messages (#7900)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -6s
2025-02-18 10:08:52 +00:00
ssongliu
33e5c9230f
fix: Optimized ollama model status display (#7899) 2025-02-18 17:06:20 +08:00
zhengkunwang
b0b6bf458f
feat: Added display of ollama proxy address (#7897) 2025-02-18 15:00:33 +08:00
zhengkunwang
f3d85d1309
fix: Fixed the issue where local application descriptions were not di… (#7896)
Refs https://github.com/1Panel-dev/1Panel/issues/7886
2025-02-18 06:17:11 +00:00
ssongliu
39385ea0a0
fix: Adjust the synchronization method for the Ollama model (#7895) 2025-02-18 06:09:10 +00:00
zhengkunwang
e492c6573c
feat: Modified the logic for AI Tool (#7894) 2025-02-18 05:59:10 +00:00
ssongliu
ea044d6c32
fix: change the AI routing interface (#7887)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -3s
2025-02-17 15:33:57 +08: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
ssongliu
367a74503f
fix: Fix the problem of duplicate content display in the model list (#7872)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 1s
2025-02-14 09:10:05 +00:00
zhengkunwang
078d7fbe1e
feat: Add AI-enhanced configuration (#7870) 2025-02-14 06:26:05 +00:00
ssongliu
c709e48ceb
feat: support load ollama model details (#7867)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -3s
2025-02-13 14:56:24 +00: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
zhengkunwang
f233ef7069
feat: Adding GPU acceleration configuration to some applications (#7865) 2025-02-13 07:02:08 +00:00
8bb225d272
feat: Check for duplicate files before uploading (#7849)
Refs #5893
2025-02-11 10:11:48 +00:00
zhengkunwang
ab932ae154
fix: Fixed the issue where application labels were not displayed after updating. (#7834)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 1s
2025-02-10 11:17:24 +08:00
zhengkunwang
74583aa1aa
feat: fix anti-leech is not work on proxy website (#7801)
Refs https://github.com/1Panel-dev/1Panel/issues/7752
2025-02-05 10:07:16 +00:00
zhengkunwang
57bfc38eb8
feat: Application details have been enhanced with tags. (#7777)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -13s
Refs https://github.com/1Panel-dev/1Panel/issues/7774
2025-01-27 11:04:26 +00: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
ca0dc71338
feat: Enable Multi-Language Support for Application Installation Forms (#7717)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -3s
2025-01-14 19:03:22 +08:00
zhengkunwang
04a1ec9a9a
feat: Add Multi-Language Support for Application Labels (#7714)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 11m6s
2025-01-14 16:00:09 +08:00
zhengkunwang
99f62b7230
fix(website):Fix Reverse Proxy Deletion Failure in Certain Scenarios (#7709)
Refs https://github.com/1Panel-dev/1Panel/issues/7701
2025-01-13 15:08:04 +00:00
zhengkunwang
ec3024f2c3
feat: Change AppDto to AppItem (#7680) 2025-01-09 12:13:41 +00:00
ssongliu
83db40e261
feat: Support for asynchronously obtaining the backup file size (#7660) 2025-01-07 06:35:33 +00:00
ssongliu
fc401ffd8f
fix: Optimize image deletion error return (#7602)
Some checks are pending
SonarCloud Scan / SonarCloud (push) Waiting to run
Refs #7068
2024-12-30 09:17:49 +00:00
b467dfa3b2
feat: Add expiration time setting for API key (#7584) 2024-12-30 05:33:49 +00:00
feng626
01643b2816
perf: Optimize FTP sync function for better performance and readability (#7479) 2024-12-20 15:45:05 +08:00