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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Soli Proxy Configuration
# Server settings
[]
= "0.0.0.0:80"
= 443
= "auto"
# TLS Configuration
[]
= "auto" # "auto" for self-signed dev, "letsencrypt" for production
= "./certs"
# Let's Encrypt (for production)
[]
= false
= "admin@example.com"
= true
# Logging Configuration
[]
= "info"
= "json"
= "stdout" # or "file:/var/log/soli-proxy.log"
= true
= true
# Metrics Configuration
[]
= true
= "/metrics"
# Health Check Configuration
[]
= true
= "/health/live"
= "/health/ready"
# Limits Configuration
[]
= 10000
= "10MB"
= 30
= 60
# Rate Limiting Configuration
[]
= true
= "token_bucket"
= 1000
= 2000
= "redis://localhost:6379"
# Circuit Breaker Configuration
# Tracks backend health and stops sending traffic to failing backends.
# When all targets for a route are open, returns 503 Service Unavailable.
[]
= 5 # consecutive failures before opening breaker
= 30 # seconds before probing an open backend
= 2 # successful probes to close breaker
= [502, 503, 504] # HTTP codes that count as failures
# Admin REST API Configuration
[]
= true
= "0.0.0.0:9090"
# api_key = "your-secret-key"
# Lua Scripting Configuration
# When enabled, scripts are loaded from scripts_dir.
# Scripts can be assigned globally or per-route in proxy.conf:
# [global] @script:cors.lua,logging.lua
# /api/* -> http://localhost:3000 @script:auth.lua,rate_limit.lua
# Built-in modules: log, base64, crypto, env, time, shared
[]
= false
= "./scripts/lua"
= 10 # Max execution time per hook call in milliseconds
# Authentication Configuration
[]
= false
= "basic"
= "Restricted"
# Uncomment and configure for production
# enabled = true
# auth_type = "jwt"
# issuer = "https://auth.example.com"
# audience = "soli-proxy"
# jwks_url = "https://auth.example.com/.well-known/jwks.json"