git » gofer » master » tree

[master] / test / 01-be.yaml

control_addr: "127.0.0.1:8459"

reqlog:
  "requests":
    file: ".01-be.requests.log"
    bufsize: 10

http:
  ":8450":

    routes:
      "/dir/":
        dir: "testdata/dir"
        diropts:
          listing:
            "/": true
            "/withindex/": false
            "/withoutindex/": false
          exclude: ["/ignored\\..*"]

      "/authdir/":
        dir: "testdata/dir"

      "/file":
        file: "testdata/file"

      "/file/second":
        file: "testdata/dir/ñaca"

      "/cgi/":
        cgi: ["testdata/cgi.sh", "param 1", "param 2"]

      "/status/543":
        status: 543

    auth:
      "/authdir/ñaca": "testdata/authdb.yaml"
      "/authdir/withoutindex/": "testdata/authdb.yaml"

    setheader:
      "/file":
        "X-My-Header": "my lovely header"

    reqlog:
      "/": requests