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

@@ -28,8 +28,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
@@ -46,6 +46,7 @@ services:
timeout: 10s
ports:
- "80:80"
- "443:443"
volumes:
- ./config:/config/
```
@@ -56,8 +57,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