优化日志输出信息,调整 Docker Compose 配置,新增 Vector 日志收集配置

This commit is contained in:
2025-06-23 16:28:02 +08:00
parent fda1a2de0e
commit 20aa3d929c
9 changed files with 139 additions and 58 deletions

View File

@@ -98,8 +98,6 @@ func Protect(c *fiber.Ctx, types []PayloadType, permissions []string) (*Context,
func Locals(c *fiber.Ctx, auth *Context) {
c.Locals("auth", auth)
c.Locals("authtype", auth.Payload.Type.ToStr())
c.Locals("authid", auth.Payload.Id)
}
func authBearer(ctx context.Context, token string) (*Context, error) {