Merge pull request #15 from jkaninda/refactor

docs: update example of configurations
This commit is contained in:
2024-10-29 19:42:22 +01:00
committed by GitHub

View File

@@ -189,22 +189,22 @@ gateway:
- path: /user - path: /user
# Rules defines which specific middleware applies to a route path # Rules defines which specific middleware applies to a route path
rules: rules:
- basic-auth - basic-auth #Middleware name
# path to protect # path to protect
- 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 #Middleware name
# 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
rules: rules:
- basic-auth - basic-auth #Middleware name
# path to protect # path to protect
- 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 # Middleware name
- path: /history - path: /history
http: http:
url: http://security-service:8080/security/authUser url: http://security-service:8080/security/authUser
@@ -236,14 +236,14 @@ 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 | jwtAuth, basicAuth, auth0 # Authentication types | jwtAuth, basicAuth, auth0
type: basicAuth type: basicAuth
rule: rule:
username: admin username: admin
password: admin password: admin
#Enables JWT authorization based on the result of a request and continues the request. #Enables JWT authorization based on the result of a request and continues the request.
- name: google-auth - name: jwt
# Authentication types | jwtAuth, basicAuth, OAuth # Authentication types | jwtAuth, basicAuth, OAuth
# jwt authorization based on the result of backend's response and continue the request when the client is authorized # jwt authorization based on the result of backend's response and continue the request when the client is authorized
type: jwtAuth type: jwtAuth