docs: update Kubernetes deployment
This commit is contained in:
@@ -73,7 +73,7 @@ It's designed to be straightforward and efficient, offering a rich set of featur
|
||||
- **HTTP Method Restrictions**
|
||||
Limit HTTP methods for specific routes to enhance control.
|
||||
|
||||
Define your routes and middleware directly in code for seamless configuration.
|
||||
Declarative API Gateway Management, define your routes and middleware directly in code for seamless configuration.
|
||||
|
||||
----
|
||||
Architecture:
|
||||
|
||||
@@ -92,4 +92,34 @@ Create a file in `/etc/goma/extra` using `yaml` or `.yaml` extension.
|
||||
middlewares:
|
||||
- auth-middleware
|
||||
|
||||
```
|
||||
|
||||
## Extra Middlewares
|
||||
|
||||
Create a file in `/etc/goma/extra` using `yaml` or `.yaml` extension.
|
||||
|
||||
```yaml
|
||||
##### Extra Middlewares
|
||||
middlewares:
|
||||
# Enable Basic auth authorization based
|
||||
- name: extra-basic-auth
|
||||
# Authentication types | jwt, basic, OAuth
|
||||
type: basic
|
||||
paths:
|
||||
- /user
|
||||
- /admin
|
||||
- /account
|
||||
rule:
|
||||
username: admin
|
||||
password: admin
|
||||
# The server will return 403
|
||||
- name: extra-api-forbidden-paths
|
||||
type: access
|
||||
## prevents access paths
|
||||
paths:
|
||||
- /swagger-ui/*
|
||||
- /v2/swagger-ui/*
|
||||
- /api-docs/*
|
||||
- /internal/*
|
||||
- /actuator/*
|
||||
```
|
||||
Reference in New Issue
Block a user