chore: code refactoring
This commit is contained in:
6
goma.yml
6
goma.yml
@@ -85,7 +85,7 @@ gateway:
|
|||||||
- path: /path-example
|
- path: /path-example
|
||||||
# Rules defines which specific middleware applies to a route path
|
# Rules defines which specific middleware applies to a route path
|
||||||
rules:
|
rules:
|
||||||
- jwtAuth
|
- jwt
|
||||||
# path to protect
|
# path to protect
|
||||||
- path: /admin
|
- path: /admin
|
||||||
# Rules defines which specific middleware applies to a route path
|
# Rules defines which specific middleware applies to a route path
|
||||||
@@ -95,7 +95,7 @@ gateway:
|
|||||||
- path: /path-example
|
- path: /path-example
|
||||||
# Rules defines which specific middleware applies to a route path
|
# Rules defines which specific middleware applies to a route path
|
||||||
rules:
|
rules:
|
||||||
- jwtAuth
|
- jwt
|
||||||
- path: /history
|
- path: /history
|
||||||
http:
|
http:
|
||||||
url: http://security-service:8080/security/authUser
|
url: http://security-service:8080/security/authUser
|
||||||
@@ -127,7 +127,7 @@ gateway:
|
|||||||
#Defines proxy middlewares
|
#Defines proxy middlewares
|
||||||
middlewares:
|
middlewares:
|
||||||
# Enable Basic auth authorization based
|
# Enable Basic auth authorization based
|
||||||
- name: local-auth-basic
|
- name: basic-auth
|
||||||
# Authentication types | jwt, basic, OAuth
|
# Authentication types | jwt, basic, OAuth
|
||||||
type: basic
|
type: basic
|
||||||
rule:
|
rule:
|
||||||
|
|||||||
@@ -156,11 +156,11 @@ type Gateway struct {
|
|||||||
AccessLog string `yaml:"accessLog" env:"GOMA_ACCESS_LOG, overwrite"`
|
AccessLog string `yaml:"accessLog" env:"GOMA_ACCESS_LOG, overwrite"`
|
||||||
ErrorLog string `yaml:"errorLog" env:"GOMA_ERROR_LOG=, overwrite"`
|
ErrorLog string `yaml:"errorLog" env:"GOMA_ERROR_LOG=, overwrite"`
|
||||||
// DisableRouteHealthCheckError allows enabling and disabling backend healthcheck errors
|
// DisableRouteHealthCheckError allows enabling and disabling backend healthcheck errors
|
||||||
DisableRouteHealthCheckError bool `yaml:"disableRouteHealthCheckError" default:"false"`
|
DisableRouteHealthCheckError bool `yaml:"disableRouteHealthCheckError"`
|
||||||
//Disable allows enabling and disabling displaying routes on start
|
//Disable allows enabling and disabling displaying routes on start
|
||||||
DisableDisplayRouteOnStart bool `yaml:"disableDisplayRouteOnStart" default:"false"`
|
DisableDisplayRouteOnStart bool `yaml:"disableDisplayRouteOnStart"`
|
||||||
// DisableKeepAlive allows enabling and disabling KeepALive server
|
// DisableKeepAlive allows enabling and disabling KeepALive server
|
||||||
DisableKeepAlive bool `yaml:"disableKeepAlive" default:"false"`
|
DisableKeepAlive bool `yaml:"disableKeepAlive"`
|
||||||
// InterceptErrors holds the status codes to intercept the error from backend
|
// InterceptErrors holds the status codes to intercept the error from backend
|
||||||
InterceptErrors []int `yaml:"interceptErrors"`
|
InterceptErrors []int `yaml:"interceptErrors"`
|
||||||
// Cors holds proxy global cors
|
// Cors holds proxy global cors
|
||||||
|
|||||||
Reference in New Issue
Block a user