Commit graph

317 commits

Author SHA1 Message Date
CityFun
bdeb842939
feat: change 1panel v1 docs url (#8993) 2025-06-10 08:16:34 +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
ssongliu
1663bf8677
fix: Regenerates the interface document (#8298)
Some checks are pending
SonarCloud Scan / SonarCloud (push) Waiting to run
2025-04-02 09:07:54 +00:00
zhengkunwang
bba8aab18c
feat: Add MCP management (#8299) 2025-04-02 09:01:54 +00:00
zhengkunwang
ec363ac157
feat: update default app.yaml (#8011)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 12m3s
2025-02-26 15:35:54 +08:00
193b0f3cd4
fix: Update swagger docs (#8002)
Refs #8001
2025-02-26 10:55:40 +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
ssongliu
c329fb6599
feat: Support for terminal operation with the Ollama model (#7907) 2025-02-19 14:07:05 +08:00
ssongliu
39385ea0a0
fix: Adjust the synchronization method for the Ollama model (#7895) 2025-02-18 06:09:10 +00:00
wanghe-fit2cloud
10a7fb3be2 feat: Update the official website URL for the international version
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -6s
2025-02-18 10:31:38 +08: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
078d7fbe1e
feat: Add AI-enhanced configuration (#7870) 2025-02-14 06:26:05 +00:00
4f57dfc76e
feat: Unify the response body of the API interface (#7761) 2025-01-23 08:28:04 +00:00
999e5a779a
feat: Update swagger docs (#7710)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -2s
2025-01-13 15:10:04 +00:00
5bc7bc6aac
fix: Fix missing response types in Swagger API endpoints (#7611)
Some checks failed
SonarCloud Scan / SonarCloud (push) Has been cancelled
Refs #7607
2024-12-31 09:57:55 +00:00
Ryan Wang
5187b20252
fix: correct Swagger API definitions (#7606)
Some checks are pending
SonarCloud Scan / SonarCloud (push) Waiting to run
Signed-off-by: Ryan Wang <i@ryanc.cc>
2024-12-31 10:32:47 +08:00
zhengkunwang
afe82bd4be
feat: Remove Default Configuration for Reverse Proxy Cache (#7566)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 6s
2024-12-26 10:16:07 +08:00
Anye
ed60565bc9
Update cache.conf (#7516)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 4s
Remove `proxy_cache ` from the global config to prevent it from being enabled for sites that don't need caching.
2024-12-23 11:21:23 +08:00
wanghe-fit2cloud
e56feaf826 docs: Optimize README 2024-12-20 16:35:23 +08:00
f58ed5614e
feat: Optimize style and description (#7378)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 19s
2024-12-16 14:16:10 +00:00
wanghe-fit2cloud
1f16e09daa chore: Optimize the prompt messages on some pages 2024-12-16 18:27:15 +08:00
ssongliu
82e9e72c70
feat: Fix the initialization errors of GeoIP (#7345) 2024-12-12 06:55:49 +00:00
ssongliu
20c9230291
feat(init): Add support for geo ip pack initialization (#7333) 2024-12-11 18:44:18 +08:00
ssongliu
17ef66aa49
feat(init): add support for international language pack initialization (#7315) 2024-12-10 18:36:53 +08:00
zhengkunwang
db7180a761
feat: Add Return Pages for Unauthorized Domains and IPs (#7306) 2024-12-10 11:58:32 +08:00
2bc07c91df
pref: Improve Swagger authentication (#7298)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 7s
2024-12-09 09:57:34 +00:00
王贺
0c000a4994
fix: Modify the default open source license in Swagger (#7277)
Refs #7275
2024-12-06 08:57:20 +00:00
ssongliu
5b92b75090
feat(cmd): Add internationalization for the output of the 1pctl version (#7263) 2024-12-05 07:43:14 +00:00
ssongliu
7202de6f4c
feat: Add pt-BR support for i18n (#7261) 2024-12-05 06:43:15 +00:00
zhengkunwang
8e3a06b07f
feat: Internationalize Certain Files (#7252) 2024-12-03 10:17:05 +00:00
wanghe-fit2cloud
cc1d2f1eae chore: Update app.yaml 2024-12-03 13:51:06 +08:00
0ef1a26e95
pref: Remove Swagger description information (#7214)
Some checks failed
Build / SonarCloud (push) Failing after 6s
2024-11-30 11:44:50 +00:00
zhengkunwang
00701a3999
feat(website): Translate Chinese Parts of Website Default Files (#7213) 2024-11-30 11:42:51 +00: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
83ce744fb2
feat: Adapt to internationalization (#7205) 2024-11-28 10:40:39 +00:00
ssongliu
519c6bca66
feat(cmd): Add support for internationalization of 1Panel commands (#7192) 2024-11-27 08:02:35 +00:00
igophper
7dc0a2f664
fix: 解决更新端口不更新防火墙规则的问题 (#7169) 2024-11-25 16:12:52 +08:00
28597721f2
feat: Add API interface authentication function (#7146) 2024-11-21 22:09:00 +08:00
zhengkunwang
c2fd02ac48
feat(system-security): Added 444 and 500 responses for unauthenticated settings (#7143) 2024-11-21 17:46:13 +08:00
zhengkunwang
2ba17d89ef
feat(system-security): Optimized unauthenticated settings to enhance system security (#7142) 2024-11-21 16:31:07 +08:00
ssongliu
dc0f726029
fix: 解决操作日志打印错误的问题 (#6899) 2024-10-30 17:02:19 +08:00
zhengkunwang
e069db3c45
feat: 反代回源 SNI 支持设置 proxy_ssl_name (#6659)
Refs https://github.com/1Panel-dev/1Panel/issues/5960
2024-10-09 06:42:56 +00:00
Anye
641812e7c1
fix: 调整Logo长宽比,防止显示被拉伸 (#6510)
Some checks failed
Build Test / build-linux-binary (push) Failing after -8m58s
Build / SonarCloud (push) Failing after -9m8s
sync2gitee / repo-sync (push) Failing after -9m11s
* fix: 调整Logo长宽比,防止显示被拉伸
2024-09-17 12:52:58 +08:00
zhengkunwang
dd1430dbbf
feat: 反向代理配置文件统一 (#6396)
Some checks failed
Build Test / build-linux-binary (push) Failing after -8m40s
Build / SonarCloud (push) Failing after -8m44s
sync2gitee / repo-sync (push) Failing after -8m45s
Refs https://github.com/1Panel-dev/1Panel/issues/6395
2024-09-06 06:33:50 +00:00
zhengkunwang
40f7ef90b3
feat: 修改反向代理默认 Connection 请求头 (#5951)
Some checks failed
Build Test / build-linux-binary (push) Failing after -7m2s
Build / SonarCloud (push) Failing after -7m4s
sync2gitee / repo-sync (push) Failing after -7m6s
Refs https://github.com/1Panel-dev/1Panel/issues/5937
2024-07-26 07:01:40 +00:00
ssongliu
1cf3a0143c
fix: 解决系统日志解析错误的问题 (#5917) 2024-07-23 07:57:32 +00:00
ssongliu
3c0dc7459c
feat: 工具箱病毒扫描支持定时扫描 (#5847) 2024-07-17 08:55:28 +00:00
ssongliu
577dfadb9a
feat: 病毒扫描增加病毒库刷新状态 (#5710) 2024-07-08 07:47:23 +00:00
zhengkunwang
40d9dea96c
feat: 暂时删除 SSL 证书 OCSP 校验 (#5692)
Refs https://github.com/1Panel-dev/1Panel/issues/5688
2024-07-05 08:50:39 +00:00
ssongliu
f370f7eacf
fix: 优化病毒扫描报告界面 (#5675) 2024-07-04 08:00:32 +00:00