This is an automated email from the ASF dual-hosted git repository.
janhoy pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new b3d7c00 SOLR-16054: Better documentation of solr.environment property
(#701)
b3d7c00 is described below
commit b3d7c00bbb53a5828449b3ae3a3a055af08c8c14
Author: Jan Høydahl <[email protected]>
AuthorDate: Thu Mar 3 11:29:53 2022 +0100
SOLR-16054: Better documentation of solr.environment property (#701)
(cherry picked from commit 0cf21d2fe5762517821cd29d649a0584b75c5b1b)
---
.../deployment-guide/pages/taking-solr-to-production.adoc | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git
a/solr/solr-ref-guide/modules/deployment-guide/pages/taking-solr-to-production.adoc
b/solr/solr-ref-guide/modules/deployment-guide/pages/taking-solr-to-production.adoc
index fe09c59..34f8074 100644
---
a/solr/solr-ref-guide/modules/deployment-guide/pages/taking-solr-to-production.adoc
+++
b/solr/solr-ref-guide/modules/deployment-guide/pages/taking-solr-to-production.adoc
@@ -307,15 +307,16 @@ Setting the hostname of the Solr server is recommended,
especially when running
To guard against accidentally doing changes to the wrong cluster, you may
configure a visual indication in the Admin UI of whether you currently work
with a production environment or not.
To do this, edit your `solr.in.sh` or `solr.in.cmd` file with a
`-Dsolr.environment=prod` setting, or set the cluster property named
`environment`.
-To specify label and/or color, use a comma-delimited format as below.
+Allowed values are `dev`, `test`, `stage` or `prod`. Each of these have
default labels and colors predefined.
+To specify label and/or color, use a comma-delimited format as below. Label
has to be defined before color.
The `+` character can be used instead of space to avoid quoting.
Colors may be valid CSS colors or numeric, e.g., `#ff0000` for bright red.
Examples of valid environment configs:
-* `prod`
-* `test,label=Functional+test`
-* `dev,label=MyDev,color=blue`
-* `dev,color=blue`
+* `prod` (default label is 'Production', default color is a tone of red)
+* `test,label=Functional+test` (default color will remain yellow, but override
the label)
+* `dev,label=MyDev,color=blue` (override both label and color by name)
+* `stage,color=#ff8888` (customize color with code)
=== Override Settings in solrconfig.xml