feat: add server handle both HTTP and HTTPS

This commit is contained in:
2024-11-05 20:11:24 +01:00
parent e2fb3dff1b
commit 28931ca306
9 changed files with 56 additions and 35 deletions

View File

@@ -92,8 +92,8 @@ docker run --rm --name goma-gateway \
```
### 4. Healthcheck
- Goma Gateway readiness: `/readyz`
- Routes health check: `/healthz`
- Goma Gateway health check: `/health/live`
- Routes health check: `health/live`
### 5. Simple deployment in docker compose file
@@ -103,7 +103,7 @@ services:
image: jkaninda/goma-gateway
command: server
healthcheck:
test: curl -f http://localhost/readyz || exit 1
test: curl -f http://localhost/heath/live || exit 1
interval: 30s
retries: 5
start_period: 20s
@@ -121,8 +121,6 @@ Example of a configuration file
```yaml
# Goma Gateway configurations
gateway:
########## Global settings
listenAddr: :80 #:443 SSL
# Proxy write timeout
writeTimeout: 15
# Proxy read timeout