forked from mtusi2026/mtusi2026lab7
lab7
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
static_resources:
|
||||
clusters:
|
||||
- connect_timeout: 3s
|
||||
load_assignment:
|
||||
cluster_name: local_8080
|
||||
endpoints:
|
||||
- lb_endpoints:
|
||||
- endpoint:
|
||||
address:
|
||||
socket_address:
|
||||
address: 127.0.0.1
|
||||
port_value: 8080
|
||||
name: local_8080
|
||||
type: STATIC
|
||||
listeners:
|
||||
- address:
|
||||
socket_address:
|
||||
address: 0.0.0.0
|
||||
port_value: 8443
|
||||
filter_chains:
|
||||
- filters:
|
||||
- name: envoy.filters.network.tcp_proxy
|
||||
typed_config:
|
||||
'@type': type.googleapis.com/envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy
|
||||
cluster: local_8080
|
||||
stat_prefix: local_8080
|
||||
transport_socket:
|
||||
name: envoy.transport_sockets.tls
|
||||
typed_config:
|
||||
'@type': type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.DownstreamTlsContext
|
||||
common_tls_context:
|
||||
tls_certificates:
|
||||
- certificate_chain:
|
||||
filename: /identity/api.crt
|
||||
private_key:
|
||||
filename: /identity/api.key
|
||||
tls_params:
|
||||
tls_minimum_protocol_version: TLSv1_2
|
||||
validation_context:
|
||||
crl:
|
||||
filename: /pki/ca.crl
|
||||
match_typed_subject_alt_names:
|
||||
- matcher:
|
||||
exact: client-api
|
||||
san_type: DNS
|
||||
trusted_ca:
|
||||
filename: /pki/ca.crt
|
||||
require_client_certificate: true
|
||||
name: tls_8443
|
||||
Reference in New Issue
Block a user