pub
This commit is contained in:
+34
@@ -0,0 +1,34 @@
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user