Skip to content

Commit c9cfb30

Browse files
committed
fix: cert control error
1 parent 863f871 commit c9cfb30

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

config/config.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ type ServerConfig struct {
5757
Requests int `json:"requests" yaml:"requests"`
5858
Duration int `json:"duration" yaml:"duration"`
5959
} `json:"limiter" yaml:"limiter"`
60-
Devmode bool `json:"devmode" yaml:"devmode"`
61-
HTTP3Enabled bool `json:"http3_enabled" yaml:"http3_enabled"`
62-
CertAutoControlEnabled bool `json:"cert_ctrl_enabled" yaml:"cert_ctrl_enabled"`
60+
Devmode bool `json:"devmode" yaml:"devmode"`
61+
HTTP3Enabled bool `json:"http3_enabled" yaml:"http3_enabled"`
6362
}
6463

6564
type Config struct {

models/article.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import "time"
55
type ArticleSummary struct {
66
Title string `json:"title" gorm:"primaryKey"`
77
UpdateAt *time.Time `json:"updateAt" gorm:"autoUpdateTime;"`
8-
Category string `json:"category" gorm:"type:VARCHAR(100)"`
8+
Category string `json:"category" gorm:"type:VARCHAR(255)"`
99
Summary string `json:"summary" gorm:"type:TEXT"`
1010
}
1111

0 commit comments

Comments
 (0)