refactor: rename middleware type

This commit is contained in:
Jonas Kaninda
2024-10-29 22:55:09 +01:00
parent 4a562e2854
commit e9af89e5be
3 changed files with 16 additions and 16 deletions

View File

@@ -296,14 +296,14 @@ func initConfig(configFile string) {
Middlewares: []Middleware{
{
Name: "basic-auth",
Type: basicAuth,
Type: "basic",
Rule: BasicRule{
Username: "goma",
Password: "goma",
},
}, {
Name: "jwt",
Type: jwtAuth,
Type: "jwt",
Rule: JWTRuler{
URL: "https://www.googleapis.com/auth/userinfo.email",
RequiredHeaders: []string{