Files
go-proxy/config.yaml
T

35 lines
684 B
YAML
Raw Normal View History

2026-09-15 01:38:15 +09:00
http:
port: 18080
tls:
enabled: false
port: 18443
cert_file: "./cert.pem"
key_file: "./key.pem"
routers:
# Example 1: Route by API path with Load Balancing
- path: "/api/v1"
backends:
- "http://localhost:18081"
- "http://localhost:18082"
strip_prefix: true
# Example 2: Route by Domain/Host
- host: "admin.local"
path: "/"
backend_url: "http://localhost:8082"
strip_prefix: false
# Example 3: Default fallback route
- path: "/"
backend_url: "http://localhost:8083"
strip_prefix: false
tcp:
port: 19000
backend: "localhost:3306"
udp:
port: 15353
backend: "8.8.8.8:53"