Static Response

Returns a fixed response without contacting any upstream

Category: Practical
Task: Returns a fixed response without contacting any upstream

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.

# Static Response
#
# Returns a fixed response without contacting any upstream.
# Useful for health checks, welcome pages, or maintenance
# mode.
#
listeners:
  - name: web
    address: "127.0.0.1:8080"
    filter_chains:
      - welcome

filter_chains:
  - name: welcome
    filters:
      - filter: static_response
        status: 200
        headers:
          - name: Content-Type
            value: application/json
        body: '{"message": "Welcome to Praxis"}'