From 247b2a5a0880df60b57c6b99537c069d2394c56a Mon Sep 17 00:00:00 2001
From: Aliaksandr Valialkin <valyala@gmail.com>
Date: Wed, 9 Jun 2021 15:38:09 +0300
Subject: [PATCH] app/vmauth: improve readability for a config with multiple
 `src_paths`

---
 README.md                     | 2 +-
 app/vmauth/README.md          | 5 ++++-
 app/vmauth/example_config.yml | 5 ++++-
 docs/vmauth.md                | 5 ++++-
 4 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index 6596d6c150..fc6a5e9273 100644
--- a/README.md
+++ b/README.md
@@ -134,7 +134,7 @@ A minimal cluster must contain the following nodes:
 It is recommended to run at least two nodes for each service
 for high availability purposes.
 
-An http load balancer such as `nginx` must be put in front of `vminsert` and `vmselect` nodes:
+An http load balancer such as [vmauth](https://docs.victoriametrics.com/vmauth.html) or `nginx` must be put in front of `vminsert` and `vmselect` nodes:
 - requests starting with `/insert` must be routed to port `8480` on `vminsert` nodes.
 - requests starting with `/select` must be routed to port `8481` on `vmselect` nodes.
 
diff --git a/app/vmauth/README.md b/app/vmauth/README.md
index 0afa6fb9dc..34333e2f26 100644
--- a/app/vmauth/README.md
+++ b/app/vmauth/README.md
@@ -100,7 +100,10 @@ users:
   # - Requests to http://vmauth:8427/api/v1/write are proxied to http://vminsert:8480/insert/42/prometheus/api/v1/write
 - username: "foobar"
   url_map:
-  - src_paths: ["/api/v1/query", "/api/v1/query_range", "/api/v1/label/[^/]+/values"]
+  - src_paths:
+    - "/api/v1/query"
+    - "/api/v1/query_range"
+    - "/api/v1/label/[^/]+/values"
     url_prefix:
     - "http://vmselect1:8481/select/42/prometheus"
     - "http://vmselect2:8481/select/42/prometheus"
diff --git a/app/vmauth/example_config.yml b/app/vmauth/example_config.yml
index ece9b9994f..01e497dfc7 100644
--- a/app/vmauth/example_config.yml
+++ b/app/vmauth/example_config.yml
@@ -60,7 +60,10 @@ users:
   # - Requests to http://vmauth:8427/api/v1/write are proxied to http://vminsert:8480/insert/42/prometheus/api/v1/write
 - username: "foobar"
   url_map:
-  - src_paths: ["/api/v1/query", "/api/v1/query_range", "/api/v1/label/[^/]+/values"]
+  - src_paths:
+    - "/api/v1/query"
+    - "/api/v1/query_range"
+    - "/api/v1/label/[^/]+/values"
     url_prefix:
     - "http://vmselect1:8481/select/42/prometheus"
     - "http://vmselect2:8481/select/42/prometheus"
diff --git a/docs/vmauth.md b/docs/vmauth.md
index cbca61e7a3..6253a16811 100644
--- a/docs/vmauth.md
+++ b/docs/vmauth.md
@@ -104,7 +104,10 @@ users:
   # - Requests to http://vmauth:8427/api/v1/write are proxied to http://vminsert:8480/insert/42/prometheus/api/v1/write
 - username: "foobar"
   url_map:
-  - src_paths: ["/api/v1/query", "/api/v1/query_range", "/api/v1/label/[^/]+/values"]
+  - src_paths:
+    - "/api/v1/query"
+    - "/api/v1/query_range"
+    - "/api/v1/label/[^/]+/values"
     url_prefix:
     - "http://vmselect1:8481/select/42/prometheus"
     - "http://vmselect2:8481/select/42/prometheus"