Created
January 10, 2018 13:21
-
-
Save sebastienblanc/02457f7deca1d156e19089969244c170 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"listeners": [ | |
{ | |
"address": "tcp://0.0.0.0:9090", | |
"bind_to_port": true, | |
"filters": [ | |
{ | |
"type": "read", | |
"name": "http_connection_manager", | |
"config": { | |
"codec_type": "auto", | |
"stat_prefix": "ingress_http", | |
"route_config": { | |
"virtual_hosts": [ | |
{ | |
"name": "backend", | |
"domains": ["*"], | |
"routes": [ | |
{ | |
"prefix": "/", | |
"cluster": "service1" | |
} | |
] | |
} | |
] | |
}, | |
"access_log": [ | |
{ | |
"path": "/dev/stdout" | |
} | |
], | |
"filters": [ | |
{ | |
"type": "decoder", | |
"name": "jwt-auth", | |
"config": { | |
"issuers": [ | |
{ | |
"name": "http://localhost:8180/auth/realms/devoxx", | |
"audiences": ["product-web"], | |
"pubkey": { | |
"type": "jwks", | |
"uri": "http://localhost:8180/auth/realms/devoxx/protocol/openid-connect/certs", | |
"cluster": "http://localhost:8180/auth/realms/devoxx" | |
} | |
} | |
], | |
"skipOptionsRequest" : false | |
} | |
}, | |
{ | |
"type": "decoder", | |
"name": "router", | |
"config": {} | |
} | |
] | |
} | |
} | |
] | |
} | |
], | |
"admin": { | |
"access_log_path": "/dev/stdout", | |
"address": "tcp://0.0.0.0:9001" | |
}, | |
"cluster_manager": { | |
"clusters": [ | |
{ | |
"name": "service1", | |
"connect_timeout_ms": 5000, | |
"type": "strict_dns", | |
"lb_type": "round_robin", | |
"hosts": [ | |
{ | |
"url": "tcp://0.0.0.0:8080" | |
} | |
] | |
}, | |
{ | |
"name": "http://localhost:8180/auth/realms/devoxx", | |
"connect_timeout_ms": 5000, | |
"type": "strict_dns", | |
"circuit_breakers": { | |
"default": { | |
"max_pending_requests": 10000, | |
"max_requests": 10000 | |
} | |
}, | |
"lb_type": "round_robin", | |
"hosts": [ | |
{ | |
"url": "tcp://localhost:8180/auth/realms/devoxx" | |
} | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment