mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 01:08:31 +02:00
repalce redirect_to_https with entrypoint middleware
This commit is contained in:
@@ -15,8 +15,7 @@ type (
|
||||
Notification []NotificationConfig `json:"notification" yaml:"notification"`
|
||||
}
|
||||
Entrypoint struct {
|
||||
RedirectToHTTPS bool `json:"redirect_to_https" yaml:"redirect_to_https"`
|
||||
Middlewares []map[string]any
|
||||
Middlewares []map[string]any `json:"middlewares" yaml:"middlewares"`
|
||||
}
|
||||
NotificationConfig map[string]any
|
||||
)
|
||||
@@ -27,8 +26,5 @@ func DefaultConfig() *Config {
|
||||
Homepage: HomepageConfig{
|
||||
UseDefaultCategories: true,
|
||||
},
|
||||
Entrypoint: Entrypoint{
|
||||
RedirectToHTTPS: false,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user