Multi Listener

Demonstrates multiple HTTP listeners, each with its own filter pipeline

Category: Setup-dependent integration
Task: Demonstrates multiple HTTP listeners, each with its own filter pipeline

Prerequisites: The external service, credentials, or certificates 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.

# Multi-Listener
#
# Demonstrates multiple HTTP listeners, each with its own
# filter pipeline. Different listeners can apply different
# filters to the same upstream backends.
#
#   Port 8080 — public HTTP (adds request ID + access log)
#   Port 8443 — public HTTPS (same pipeline, with TLS)
#   Port 9090 — internal admin (no observability filters)
#
listeners:
  - name: http
    address: "127.0.0.1:8080"
    filter_chains:
      - public

  - name: https
    address: "127.0.0.1:8443"
    filter_chains:
      - public
    tls:
      certificates:
        - cert_path: /etc/praxis/tls/cert.pem
          key_path: /etc/praxis/tls/key.pem

  - name: admin
    address: "127.0.0.1:9090"
    filter_chains:
      - internal

filter_chains:
  - name: public
    filters:
      - filter: request_id
      - filter: access_log

      - filter: router
        routes:
          - path_prefix: "/api/"
            cluster: api
          - path_prefix: "/"
            cluster: web

      - filter: load_balancer
        clusters:
          - name: api
            endpoints:
              - "127.0.0.1:3001"
              - "127.0.0.1:3002"

          - name: web
            endpoints:
              - "127.0.0.1:4000"

  - name: internal
    filters:
      - filter: router
        routes:
          - path_prefix: "/api/"
            cluster: api
          - path_prefix: "/"
            cluster: web

      - filter: load_balancer
        clusters:
          - name: api
            endpoints:
              - "127.0.0.1:3001"
              - "127.0.0.1:3002"

          - name: web
            endpoints:
              - "127.0.0.1:4000"

insecure_options:
  allow_private_endpoints: true # example proxies to local backends