feat(site): homepage 落地页 + docsify 用户手册文档站(/docs /homepage 随二进制发布)

- homepage/:品牌落地页(Hero/特性/快速开始),参考 opsxapi 站点风格,绿色品牌系
- docs/:docsify 文档站 + user-guide 十篇手册(安装/向导/采集/查询/分析/告警/授权/备份/FAQ)
- 后端 serveStaticDir 挂载 /docs 与 /homepage(可执行文件相对定位,独立于前端 dist)
This commit is contained in:
opsx committed 2026-10-29 14:04:24 +08:00
1 parent b8d08ef6d1
commit 3ea7f2dcc6
17 files changed
+605

No files matched your search

+6
View File
@@ -2,6 +2,7 @@ package controllers
import (
"fmt"
"lokistack/pkg/metrics"
"time"
"github.com/gin-gonic/gin"
@@ -108,3 +109,8 @@ func (ctrl *SystemController) SaveRetention(c *gin.Context) {
func (ctrl *SystemController) Health(c *gin.Context) {
utils.Success(c, services.SelfCheck())
}
// MetricsSummary 平台自监控快照(仅 admin;原始 Prometheus 文本在 /api/v1/metrics)
func (ctrl *SystemController) MetricsSummary(c *gin.Context) {
utils.Success(c, metrics.Snapshot())
}