Mixed Protocol
HTTP and TCP listeners run on a single server instance
Category: Practical
Task: HTTP and TCP listeners run on a single server instance
Prerequisites: The product runtime and any backend services referenced by this configuration.
Run it: Use ghcr.io/praxis-proxy/praxis:0.7.2 and follow the first reverse-proxy tutorial to mount and start the configuration.
This configuration comes from the selected release. The example has not been run here; external services are not bundled.
Download the source file.
# Mixed HTTP + TCP on the Same Server
#
# HTTP and TCP listeners run on a single server instance.
# Each protocol gets its own filter chains.
#
insecure_options:
allow_private_upstreams: true
listeners:
- name: web
address: "127.0.0.1:8080"
filter_chains:
- observability
- routing
- name: db
address: "127.0.0.1:5432"
protocol: tcp
upstream: "10.0.0.1:5432"
filter_chains:
- name: observability
filters:
- filter: request_id
- filter: access_log
- name: routing
filters:
- filter: router
routes:
- path_prefix: "/"
cluster: backend
- filter: load_balancer
clusters:
- name: backend
endpoints:
- "10.0.0.1:8080"