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

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