server.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. static_resources:
  2. listeners:
  3. - address:
  4. socket_address:
  5. address: 0.0.0.0
  6. port_value: 443
  7. filter_chains:
  8. - filters:
  9. - name: envoy.http_connection_manager
  10. config:
  11. codec_type: auto
  12. stat_prefix: ingress_http
  13. route_config:
  14. name: hello
  15. virtual_hosts:
  16. - name: hello
  17. domains:
  18. - "hello-mtls.default.svc.cluster.local"
  19. routes:
  20. - match:
  21. prefix: "/"
  22. route:
  23. cluster: hello-mTLS
  24. http_filters:
  25. - name: envoy.router
  26. config: {}
  27. tls_context:
  28. common_tls_context:
  29. tls_params:
  30. tls_minimum_protocol_version: TLSv1_2
  31. tls_maximum_protocol_version: TLSv1_3
  32. cipher_suites: "[ECDHE-ECDSA-AES128-GCM-SHA256|ECDHE-ECDSA-CHACHA20-POLY1305]"
  33. tls_certificates:
  34. - certificate_chain:
  35. filename: "/var/run/autocert.step.sm/site.crt"
  36. private_key:
  37. filename: "/var/run/autocert.step.sm/site.key"
  38. validation_context:
  39. trusted_ca:
  40. filename: "/var/run/autocert.step.sm/root.crt"
  41. require_client_certificate: true
  42. clusters:
  43. - name: hello-mTLS
  44. connect_timeout: 0.25s
  45. type: strict_dns
  46. lb_policy: round_robin
  47. hosts:
  48. - socket_address:
  49. address: 127.0.0.1
  50. port_value: 8080