forked from praxis-proxy/praxis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupstream-tls.yaml
More file actions
33 lines (30 loc) · 809 Bytes
/
Copy pathupstream-tls.yaml
File metadata and controls
33 lines (30 loc) · 809 Bytes
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
# Upstream TLS
#
# Plain HTTP on the listener; TLS to the upstream. Set sni
# when the upstream expects a specific hostname for certificate
# validation (defaults to the request's Host header).
#
# Client ──HTTP──► Praxis :8080 ──TLS──► Backend :8443
#
# Usage:
# cargo run -p praxis -- -c examples/configs/protocols/upstream-tls.yaml
# curl http://localhost:8080/
listeners:
- name: default
address: "127.0.0.1:8080"
filter_chains:
- main
filter_chains:
- name: main
filters:
- filter: router
routes:
- path_prefix: "/"
cluster: backend
- filter: load_balancer
clusters:
- name: backend
tls:
sni: "api.example.com"
endpoints:
- "127.0.0.1:8443"