docs/vmauth.md: use /some_path/.* instead of /some_path/.+ in examples, so it matches /some_path/

The /some_path/.+ regexp matches /some_path/ followed by at least a single char.
This is unexpected by most users, since they expect it should match /some_path/.
Substitute .+ with .*, so this regexp matches /some_path/ .
This commit is contained in:
Aliaksandr Valialkin 2024-07-19 08:47:47 +02:00
parent efd70b2c52
commit 6c8601681a
No known key found for this signature in database
GPG Key ID: 52C003EE2BCDB9EB

View File

@ -129,7 +129,7 @@ unauthorized_user:
- "/prometheus/api/v1/write" - "/prometheus/api/v1/write"
- "/influx/write" - "/influx/write"
- "/api/v1/import" - "/api/v1/import"
- "/api/v1/import/.+" - "/api/v1/import/.*"
url_prefix: url_prefix:
- "http://vmagent-1:8429/" - "http://vmagent-1:8429/"
- "http://vmagent-2:8429/" - "http://vmagent-2:8429/"
@ -150,13 +150,13 @@ and processes incoming requests via `vmselect` nodes according to [these docs](h
unauthorized_user: unauthorized_user:
url_map: url_map:
- src_paths: - src_paths:
- "/insert/.+" - "/insert/.*"
url_prefix: url_prefix:
- "http://vminsert-1:8480/" - "http://vminsert-1:8480/"
- "http://vminsert-2:8480/" - "http://vminsert-2:8480/"
- "http://vminsert-3:8480/" - "http://vminsert-3:8480/"
- src_paths: - src_paths:
- "/select/.+" - "/select/.*"
url_prefix: url_prefix:
- "http://vmselect-1:8481/" - "http://vmselect-1:8481/"
- "http://vmselect-2:8481/" - "http://vmselect-2:8481/"
@ -327,7 +327,7 @@ unauthorized_user:
# proxy all the requests, which start with `/vmagent/`, to vmagent backend # proxy all the requests, which start with `/vmagent/`, to vmagent backend
- src_paths: - src_paths:
- "/vmagent/.+" - "/vmagent/.*"
# drop /vmagent/ path prefix from the original request before proxying it to url_prefix. # drop /vmagent/ path prefix from the original request before proxying it to url_prefix.
drop_src_path_prefix_parts: 1 drop_src_path_prefix_parts: 1
@ -335,7 +335,7 @@ unauthorized_user:
# proxy all the requests, which start with `/vmalert`, to vmalert backend # proxy all the requests, which start with `/vmalert`, to vmalert backend
- src_paths: - src_paths:
- "/vmalert/.+" - "/vmalert/.*"
# drop /vmalert/ path prefix from the original request before proxying it to url_prefix. # drop /vmalert/ path prefix from the original request before proxying it to url_prefix.
drop_src_path_prefix_parts: 1 drop_src_path_prefix_parts: 1