Files
gitea-pages/config.go
2024-12-20 17:25:11 +08:00

27 lines
522 B
Go

package main
import (
"time"
)
type Config struct {
Bind string `yaml:"bind"` // HTTP 绑定
Domain string `yaml:"domain"` // 基础域名
Auth ConfigAuth `yaml:"auth"` // Gitea 认证配置
Cache string `yaml:"cache"` //
Storage string `yaml:"storage"` // 持久化配置
}
type ConfigAuth struct {
Server string `yaml:"server"`
Token string `yaml:"token"`
}
type ConfigCache struct {
ttl time.Duration `yaml:"ttl"` // 缓存时间
length int `yaml:"length"` // 最大文件大小
}