traefik
coding
About
The Cloud Native Application Proxy
traefik 和 nginx 比较像,主要加载比较方便,配置相对友好。
providers:
file:
watch: true
filename: "/traefik/traefik.yml"
http:
endpoint: "http://127.0.0.1:8081/traefik/provider"
pollInterval: "5s"
pollTimeout: "5s"
accessLog:
filePath: "/traefik/logs/traefik.log"
bufferingSize: 100
format: json
fields:
defaultMode: keep
names:
ClientUsername: drop
headers:
defaultMode: keep
names:
User-Agent: keep
Authorization: keep
Content-Type: keep
entryPoints:
ping:
address: ":8080"
forwardedHeaders:
insecure: true
tcp:
address: ":9000"
api:
insecure: true
dashboard: true
tcp:
routers:
my-tcp-service:
rule: HostSNI(`*`)
service: my-tcpservice
entryPoints:
- tcp
services:
my-tcpservice:
loadBalancer:
servers:
- address: "127.0.0.1:8090"
评论列表