It's possible to use regex in the listen path?

It’s possible to use regex in the listen_path? I would like to do a better match on the version.

  "proxy": {
    "listen_path": "/v{version}/events",
    "strip_listen_path": true
  }
1 Like

Yes it is.

  "proxy": {
    "listen_path": "/v{test:[\d]+}/events/",
    "strip_listen_path": true
  }

Why test: is present in listen path regex? Could you please help here understanding this. Thanks in advance.
"proxy": { "listen_path": "/v{test:[\d]+}/events/", "strip_listen_path": true }

1 Like