-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig-sample.yaml
More file actions
45 lines (45 loc) · 1.41 KB
/
config-sample.yaml
File metadata and controls
45 lines (45 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
reverseproxy:
backend_services:
backend1: "http://127.0.0.1:9003"
backend2: "http://127.0.0.1:9004"
default_backend: "backend1"
# Health check configuration
health_check:
enabled: true
interval: "30s"
timeout: "5s"
recent_request_threshold: "60s"
expected_status_codes: [200, 204]
health_endpoints:
backend1: "/health"
backend2: "/api/health"
backend_health_check_config:
backend1:
enabled: true
interval: "15s"
timeout: "3s"
expected_status_codes: [200]
backend2:
enabled: true
endpoint: "/status"
interval: "45s"
timeout: "10s"
expected_status_codes: [200, 201]
# Backend configurations with feature flags
backend_configs:
backend1:
feature_flag_id: "backend1-feature" # Feature flag that controls this backend
alternative_backend: "backend2" # Fall back to backend2 if flag is disabled
backend2:
feature_flag_id: "backend2-feature"
alternative_backend: "backend1"
# Example composite routes configuration with feature flags
composite_routes:
"/api/composite/data":
pattern: "/api/composite/data"
backends:
- "backend1"
- "backend2"
strategy: "merge"
feature_flag_id: "composite-feature" # Feature flag for this composite route
alternative_backend: "backend1" # Fall back to single backend if disabled