Beelzebub
Recipes

Static HTTP Decoy

Build a small web surface with ordered routes, realistic headers, and a safe fallback.

Copy examples/http-lab.yaml into configurations/services/, run beelzebub validate, and start the runtime. Test both the expected page and a method that is intentionally rejected. Keep a catch-all last and avoid real application content.

http-lab.yamlDownload
apiVersion: "v1"
protocol: "http"
address: ":8080"
description: "Lab HTTP decoy"
commands:
  - regex: "^/$"
    methods: [GET, HEAD]
    handler: "<html><body><h1>Internal portal</h1></body></html>"
    headers:
      - "Content-Type: text/html"
    statusCode: 200
  - regex: "^.*$"
    handler: "Not found"
    statusCode: 404
curl -i http://localhost:8080/
curl -i -X POST http://localhost:8080/

The downloadable example is validated in CI against the HTTP schema.