-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.default.toml
More file actions
68 lines (56 loc) · 1.55 KB
/
Copy pathconfig.default.toml
File metadata and controls
68 lines (56 loc) · 1.55 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# =====================================================================
# CHAINLESS-LB CONFIGURATION: EDGE DELIVERY DEFAULTS
# Used when `load_config(None)` is invoked. Defines structural baseline
# behaviors mapped natively into the compiled executable as fallback configurations.
# =====================================================================
[logging]
level = "info"
[server]
http_addr = "0.0.0.0:3000"
https_addr = "0.0.0.0:443"
[proxy]
# Defaults to local dev testing clusters
upstreams = ["127.0.0.1:8080", "127.0.0.1:8081"]
upstream_tls = false
upstream_sni = ""
upstream_alpn = "http/1.1"
[proxy.tls]
enabled = false
cert = ""
key = ""
[lb]
strategy = "RoundRobin"
[lb.circuit_breaker]
enabled = true
threshold = 5
reset_secs = 30
[lb.rate_limiter]
enabled = true
rate = 100
[lb.health_check]
period = 10
timeout = 3
# ==========================================================
# Feature-Gated Modules
# Optional states acting as configuration dispatch parameters.
# Un-commenting these structurally defines logic executed internally
# ==========================================================
# [cache]
# enabled = true
# ttl_secs = 60
# max_capacity = 10000
# strategy = "TTL"
# [auth]
# provider = "noop"
#
# ## Kratos Local Validations (Stateless Cryptographic Map)
# # provider = "kratos_local"
# # jwt_secret = "secret"
# # issuer = "chainless-lb-backend"
#
# ## Raw OIDC Verify (Remote Identity Provider Integration)
# # provider = "jwt_oidc"
# # endpoint = "https://example.com"
# [metrics]
# enabled = true
# otlp_endpoint = "http://localhost:4317"