使用 base32 解码传入的密钥;优化调试接口返回内容;新增 RUN_MODE,根据环境变量确定是否要公开调试接口

This commit is contained in:
2025-05-22 14:52:31 +08:00
parent 8c824595f4
commit 12038f0af7
6 changed files with 71 additions and 33 deletions

View File

@@ -1,6 +1,8 @@
package web
import (
"github.com/gofiber/fiber/v2/middleware/logger"
"github.com/gofiber/fiber/v2/middleware/recover"
"log/slog"
"proxy-server/gateway/env"
"strconv"
@@ -23,6 +25,8 @@ func (s *Server) Run() error {
})
// 配置中间件和路由
s.web.Use(recover.New())
s.web.Use(logger.New())
Router(s.web)
// 启动服务