Skip to content

Commit 6da1534

Browse files
committed
towards more clarity
Signed-off-by: Fabrice Flore-Thébault <[email protected]>
1 parent 7f7ac39 commit 6da1534

File tree

4 files changed

+64
-83
lines changed

4 files changed

+64
-83
lines changed

modules/configuring/proc-provisioning-your-custom-configuration.adoc

Lines changed: 22 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,17 @@
11
[id="provisioning-your-custom-configuration"]
22
= Provisioning your custom {product} configuration
33

4-
To configure {product}, provision your custom {product} config maps and secrets to {ocp-brand-name} before deploying {product}.
4+
To configure {product}, provision your custom {product} config maps and secrets to {ocp-brand-name} before running {product}.
55

66
[TIP]
77
====
8-
For a development environment, you can install {product-short} with a default config map and secret.
8+
You can skip this step to run {product-short} with the default config map and secret.
99
Your changes on this configuration might get reverted on {product-short} restart.
1010
====
1111

1212
.Prerequisites
1313
* By using the link:https://docs.redhat.com/en/documentation/openshift_container_platform/{ocp-version}/html-single/cli_tools/index#cli-about-cli_cli-developer-commands[{openshift-cli}], you have access, with developer permissions, to the {ocp-short} cluster aimed at containing your {product-short} instance.
1414

15-
* You know your desired {product-short} external URL: pass:c,a,q[{my-product-url}].
16-
+
17-
[TIP]
18-
====
19-
For a development environment, consider using the {product-short} external URL that {ocp-short} provides by default.
20-
To identify your {product-short} external URL:
21-
22-
. Deploy {product-short} with the default configuration.
23-
. From the *Developer* perspective in the OpenShift Container Platform web console, select the *Topology* view, and click the *Open URL* icon on the Developer Hub pod.
24-
====
25-
26-
2715
.Procedure
2816
. Author your custom `{my-product-secrets}.txt` file to provision your secrets as environment variables values in an {ocp-short} secret, rather than in clear text in your configuration files.
2917
It contains one secret per line in `KEY=value` form.
@@ -52,96 +40,47 @@ This is the main {product-short} configuration file.
5240
====
5341
[source,yaml,subs="+attributes,+quotes"]
5442
----
55-
app:
56-
title: {product}
57-
baseUrl: {my-product-url}
5843
backend:
5944
auth:
6045
externalAccess:
6146
- type: legacy
6247
options:
6348
subject: legacy-default-config
6449
secret: "${BACKEND_SECRET}"
65-
baseUrl: {my-product-url}
66-
cors:
67-
origin: {my-product-url}
6850
----
6951
====
7052

71-
app::
72-
Enter your {product-short} general configuration in the `app` section.
53+
Mandatory fields::
7354

74-
app.title::: Enter your {product-short} instance display name, such as _<{product}>_.
75-
+
76-
.`{my-app-config-file}` excerpt
77-
[source,yaml,subs="+attributes,+quotes"]
78-
----
79-
app:
80-
title: {product}
81-
----
55+
`backend.auth.externalAccess`:::
56+
Enter the mandatory backend authentication key configuration.
8257

83-
app.baseURL::: Enter your {product-short} external URL, such as pass:c,a,q[{my-product-url}].
84-
+
85-
.`{my-app-config-file}` excerpt
86-
[source,yaml,subs="+attributes,+quotes"]
87-
----
88-
app:
89-
baseUrl: {my-product-url}
90-
----
58+
Optional fields::
9159

92-
app.branding::
93-
Enter your {product-short} appearance configuration in the `branding` section.
94-
See link:{customizing-book-url}#customizing-appearance[Customizing the appearance].
60+
`app.title`:::
61+
Optionally, enter your {product-short} instance display name, such as _<{product}>_.
9562

96-
backend::
97-
Enter your {product-short} backend configuration in the `backend` section.
63+
`app.baseURL`, `backend.baseURL` and `backend.cors.origin`:::
64+
Optionally, enter your {product-short} external URL, such as pass:c,a,q[{my-product-url}].
9865

99-
backend.auth::: Enter your authentication configuration.
100-
See link:{authentication-book-url}[{authentication-book-title}].
101-
+
102-
.`{my-app-config-file}` excerpt
103-
[source,yaml,subs="+attributes,+quotes"]
104-
----
105-
backend:
106-
auth: _<my_authentication_configuration>_
107-
----
108-
109-
backend.auth.externalAccess:::
110-
Enter the mandatory backend authentication key configuration.
111-
+
112-
.`{my-app-config-file}` excerpt
113-
[source,yaml,subs="+attributes,+quotes"]
114-
----
115-
backend:
116-
auth:
117-
externalAccess:
118-
- type: legacy
119-
options:
120-
subject: legacy-default-config
121-
secret: "${BACKEND_SECRET}"
122-
----
66+
`app.branding`:::
67+
Optionally, enter your appearance customization configuration.
68+
See link:{customizing-book-url}#customizing-appearance[Customizing the appearance].
12369

124-
backend.baseURL and backend.cors.origin::: Enter your {product-short} external URL, such as pass:c,a,q[{my-product-url}].
125-
+
126-
.`{my-app-config-file}` excerpt
127-
[source,yaml,subs="+attributes,+quotes"]
128-
----
129-
backend:
130-
baseUrl: {my-product-url}
131-
cors:
132-
origin: {my-product-url}
133-
----
70+
`backend.auth`:::
71+
Optionally, enter your authentication configuration.
72+
See link:{authentication-book-url}[{authentication-book-title}].
13473

135-
catalog::
136-
Optionally, to configure the {product-short} catalog, enter your `catalog` section.
74+
`catalog`:::
75+
Optionally, configure the {product-short} catalog.
13776
See link:{authentication-book-url}[{authorization-book-title}] and xref:proc-configuring-an-rhdh-instance-with-tls-in-kubernetes_running-behind-a-proxy[].
13877

139-
kubernetes::
140-
Optionally, to configure the {ocp-short} integration, enter your `kubernetes` section.
78+
`kubernetes`:::
79+
Optionally, configure the {ocp-short} integration.
14180
See xref:proc-configuring-an-rhdh-instance-with-tls-in-kubernetes_running-behind-a-proxy[].
14281

143-
permission::
144-
Optionally, to configure authorization, enter your `permission` section.
82+
`permission`:::
83+
Optionally, configure authorization.
14584
See link:{authorization-book-url}[{authorization-book-title}].
14685

14786
. Provision your custom configuration files to your {ocp-short} cluster.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[id="customizing-your-product-se-url"]
2+
= Customizing your {product} base URL
3+
4+
You can change the default {product} base URL.
5+
6+
.Prerequisites
7+
* You know your desired {product-short} external URL: pass:c,a,q[{my-product-url}], and have configured DNS to point to your {ocp-brand-name} cluster.
8+
* link:{configuring-book-url}[Custom {product-short} configuration].
9+
10+
.Procedure
11+
* In your custom `{my-app-config-file}` file, enter your {product-short} external URL, such as pass:c,a,q[{my-product-url}].
12+
+
13+
.`{my-app-config-file}` excerpt
14+
[source,yaml,subs="+attributes,+quotes"]
15+
----
16+
app:
17+
baseUrl: {my-product-url}
18+
backend:
19+
baseUrl: {my-product-url}
20+
cors:
21+
origin: {my-product-url}
22+
----
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[id="customizing-your-product-title"]
2+
= Customizing your {product} title
3+
4+
You can change the default {product} display name.
5+
6+
.Prerequisites
7+
* link:{configuring-book-url}[Custom {product-short} configuration].
8+
9+
.Procedure
10+
* In your custom `{my-app-config-file}` file, enter your {product-short} instance display name, such as _<{product}>_.
11+
+
12+
.`{my-app-config-file}` excerpt
13+
[source,yaml,subs="+attributes,+quotes"]
14+
----
15+
app:
16+
title: {product}
17+
----

titles/customizing/master.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ include::artifacts/attributes.adoc[]
88

99
{abstract}
1010

11+
include::modules/customizing/proc-customizing-your-product-title.adoc[leveloffset=+1]
12+
13+
include::modules/customizing/proc-customizing-your-product-base-url.adoc[leveloffset=+1]
1114

1215
include::assemblies/assembly-configuring-templates.adoc[leveloffset=+1]
1316

0 commit comments

Comments
 (0)