repalce redirect_to_https with entrypoint middleware

This commit is contained in:
yusing
2024-11-30 08:50:23 +08:00
parent 796a4a693a
commit f8bdc7044c
8 changed files with 30 additions and 61 deletions

View File

@@ -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,
},
}
}