docs: update configuration deployment

This commit is contained in:
Jonas Kaninda
2024-11-14 15:18:39 +01:00
parent a096d04d04
commit d36f1a0d72
5 changed files with 41 additions and 2 deletions

View File

@@ -56,10 +56,10 @@ It's designed to be straightforward and efficient, offering features, like:
- OAuth
- Rate limiting, In-Memory client IP based
- Limit HTTP methods allowed for a particular route.
- Distributed rate limiting, client IP based using Redis
### Todo:
- [ ] Blocklist IP address middleware
- [ ] Distributed Rate Limiting for In-Memory client IP based across multiple instances using Redis
----

View File

@@ -33,6 +33,8 @@ It's designed to be straightforward and efficient, offering features, like:
- OAuth
- Rate limiting, In-Memory client IP based
- Limit HTTP methods allowed for a particular route.
- Distributed rate limiting, client IP based using Redis
Declare your routes and middlewares as code.

View File

@@ -0,0 +1,29 @@
---
title: Distributed instances
layout: default
parent: Quickstart
nav_order: 5
---
# Distributed instances
```yaml
version: "1.0"
gateway:
sslCertFile: cert.pem
sslKeyFile: key.pem
writeTimeout: 15
readTimeout: 15
idleTimeout: 30
rateLimit: 60 # peer minute
blockCommonExploits: false
accessLog: /dev/Stdout
errorLog: /dev/stderr
logLevel: ''
## Redis connexion for distributed rate limiting; when using multiple instances | It's optional
redis:
addr: redis:6379
password: password
```

View File

@@ -4,7 +4,7 @@ metadata:
name: goma-config
data:
goma.yml: |
# Goma Gateway configurations
# Goma Gateway configurations
version: 1.0
gateway:
# Proxy write timeout
@@ -22,6 +22,10 @@ data:
logLevel: info # debug, trace, off
accessLog: "/dev/Stdout"
errorLog: "/dev/stderr"
## Redis connexion for distributed rate limiting, when using multiple instances | It's optional
#redis:
#addr: redis:6379
# password: password
## Enable, disable routes health check
disableHealthCheckStatus: false
## Returns backend route healthcheck errors

View File

@@ -16,6 +16,10 @@ gateway:
logLevel: info # debug, trace, off
accessLog: "/dev/Stdout"
errorLog: "/dev/stderr"
## Redis connexion for distributed rate limiting, when using multiple instances | It's optional
#redis:
#addr: redis:6379
# password: password
## Enable, disable routes health check
disableHealthCheckStatus: false
## Returns backend route healthcheck errors