Skip to content

v.0.96.1

Latest

Choose a tag to compare

@sadoyan sadoyan released this 03 Dec 17:52

Added nested and extension based routing, with new upstreams config parameters

  www.example.com:
    paths:
      "/some/{aaa}/any":
        healthcheck: false
        client_headers:
          - "X-Proxy-From:ZZZZZZZZZZZZZZZZZZZZZZZ"
        server_headers:
          - "X-Proxy-From:ZZZZZZZZZZZZZZZZZZZZZZZ"
        servers:
          - "127.0.0.1:8000"
          - "127.0.0.2:8000"
      "/some/{bbb}/{ggg}/any":
        servers:
          - "127.0.0.3:8000"
          - "127.0.0.4:8000"

{aaa}, {bbb} and {ggg} can be anything, but should be unique for nested path routing

      "php":
        client_headers:
          - "X-Proxy-From:BBBBBBBBBBBBBBBBBBBBBBB"
        servers:
          - "127.0.0.5:8000"
          - "127.0.0.6:8000"

Without slash, will route any url ending with .php to upstream .

No Braking changes, old configs will work without modifications, new path types are added on top of old ones.