-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml
More file actions
47 lines (40 loc) · 1.12 KB
/
Copy pathconfig.yaml
File metadata and controls
47 lines (40 loc) · 1.12 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
46
47
listen: ${EDGEPROXY_LISTEN:-0.0.0.0:8080}
defaults:
request_timeout_s: 30
connect_timeout_s: 5
retries: 2
rate_limit: { rps: 100, burst: 50, key: ip }
cache: { enabled: false, ttl_s: 30, max_body_kb: 256 }
cache_store:
l1_max_entries: 100000
# l2_path: /var/lib/edgeproxy/cache # RocksDB (F5); omit to disable L2
observability:
log_format: pretty # json | pretty
log_level: ${RUST_LOG:-info} # e.g. info,edgeproxy=debug,hyper=warn
otlp_endpoint: null
backends:
- name: api-service
prefix: /api
kind:
type: http_passthrough
lb: round_robin
upstreams:
- http://127.0.0.1:3001
- http://127.0.0.1:3002
cache: { enabled: true, ttl_s: 60 } # per-route override
- name: auth-service
prefix: /auth
kind:
type: http_passthrough
lb: ip_hash
upstreams:
- http://127.0.0.1:4001
- name: admin-service
prefix: /admin
kind:
type: http_passthrough
lb: least_connections
upstreams:
- http://127.0.0.1:5001
- http://127.0.0.1:5002
# auth: <reserved — parsed-but-unused; added in a later phase>