chore: stabilize lint and verify builds

This commit is contained in:
2026-02-06 11:51:32 +08:00
parent edede17880
commit 1782f64417
114 changed files with 3032 additions and 1345 deletions

View File

@@ -13,12 +13,12 @@ type Config struct {
StaticPath *string
StaticRoute *string
BaseURI *string
Tls *Tls
TLS *TLS
Cors *Cors
RateLimit *RateLimit
}
type Tls struct {
type TLS struct {
Cert string
Key string
}
@@ -57,5 +57,6 @@ func (h *Config) Address() string {
if h.Host == "" {
return fmt.Sprintf("0.0.0.0:%d", h.Port)
}
return fmt.Sprintf("%s:%d", h.Host, h.Port)
}