docs: update Kubernetes deployment

This commit is contained in:
Jonas Kaninda
2024-12-01 19:31:33 +01:00
parent 922282fec9
commit 015906b009
6 changed files with 89 additions and 10 deletions

View File

@@ -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:

View File

@@ -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/*
```