Add architecture
This commit is contained in:
26
README.md
26
README.md
@@ -11,8 +11,6 @@
|
||||
```
|
||||
Goma Gateway is a lightweight API Gateway.
|
||||
|
||||
Simple, easy to use, and configure.
|
||||
|
||||
[](https://github.com/jkaninda/goma-gateway/actions/workflows/release.yml)
|
||||
[](https://goreportcard.com/report/github.com/jkaninda/goma-gateway)
|
||||
[](https://pkg.go.dev/github.com/jkaninda/goma-gateway)
|
||||
@@ -20,6 +18,13 @@ Simple, easy to use, and configure.
|
||||
|
||||
<img src="https://raw.githubusercontent.com/jkaninda/goma-gateway/main/logo.png" width="150" alt="Goma logo">
|
||||
|
||||
|
||||
|
||||
Architecture:
|
||||
|
||||
<img src="./goma-gateway.png" width="912" alt="Goma archi">
|
||||
|
||||
|
||||
## Links:
|
||||
|
||||
- [Docker Hub](https://hub.docker.com/r/jkaninda/goma-gateway)
|
||||
@@ -27,7 +32,6 @@ Simple, easy to use, and configure.
|
||||
|
||||
### Documentation is found at <https://jkaninda.github.io/goma-gateway>
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
It comes with a lot of integrated features, such as:
|
||||
@@ -155,26 +159,18 @@ gateway:
|
||||
##### Define route middlewares from middlewares names
|
||||
## The name must be unique
|
||||
## List of middleware name
|
||||
middlewares:
|
||||
- api-forbidden-paths
|
||||
- basic-auth
|
||||
# Example of a route | 2
|
||||
- name: Authentication service
|
||||
path: /auth
|
||||
rewrite: /
|
||||
destination: https://example.com
|
||||
healthCheck: /
|
||||
cors: {}
|
||||
middlewares:
|
||||
- api-forbidden-paths
|
||||
# Example of a route | 3
|
||||
- name: Basic auth
|
||||
path: /protected
|
||||
rewrite: /
|
||||
destination: 'http://notification-service:8080'
|
||||
destination: https://example.com
|
||||
healthCheck:
|
||||
cors: {}
|
||||
middlewares: []
|
||||
middlewares:
|
||||
- api-forbidden-paths
|
||||
- basic-auth
|
||||
|
||||
#Defines proxy middlewares
|
||||
# middleware name must be unique
|
||||
|
||||
Reference in New Issue
Block a user