|
1 | 1 | [id="provisioning-your-custom-configuration"] |
2 | 2 | = Provisioning your custom {product} configuration |
3 | 3 |
|
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}. |
5 | 5 |
|
6 | 6 | [TIP] |
7 | 7 | ==== |
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. |
9 | 9 | Your changes on this configuration might get reverted on {product-short} restart. |
10 | 10 | ==== |
11 | 11 |
|
12 | 12 | .Prerequisites |
13 | 13 | * 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. |
14 | 14 |
|
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 | | - |
27 | 15 | .Procedure |
28 | 16 | . 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. |
29 | 17 | It contains one secret per line in `KEY=value` form. |
@@ -52,96 +40,47 @@ This is the main {product-short} configuration file. |
52 | 40 | ==== |
53 | 41 | [source,yaml,subs="+attributes,+quotes"] |
54 | 42 | ---- |
55 | | -app: |
56 | | - title: {product} |
57 | | - baseUrl: {my-product-url} |
58 | 43 | backend: |
59 | 44 | auth: |
60 | 45 | externalAccess: |
61 | 46 | - type: legacy |
62 | 47 | options: |
63 | 48 | subject: legacy-default-config |
64 | 49 | secret: "${BACKEND_SECRET}" |
65 | | - baseUrl: {my-product-url} |
66 | | - cors: |
67 | | - origin: {my-product-url} |
68 | 50 | ---- |
69 | 51 | ==== |
70 | 52 |
|
71 | | -app:: |
72 | | -Enter your {product-short} general configuration in the `app` section. |
| 53 | +Mandatory fields:: |
73 | 54 |
|
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. |
82 | 57 |
|
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:: |
91 | 59 |
|
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}>_. |
95 | 62 |
|
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}]. |
98 | 65 |
|
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]. |
123 | 69 |
|
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}]. |
134 | 73 |
|
135 | | -catalog:: |
136 | | -Optionally, to configure the {product-short} catalog, enter your `catalog` section. |
| 74 | +`catalog`::: |
| 75 | +Optionally, configure the {product-short} catalog. |
137 | 76 | See link:{authentication-book-url}[{authorization-book-title}] and xref:proc-configuring-an-rhdh-instance-with-tls-in-kubernetes_running-behind-a-proxy[]. |
138 | 77 |
|
139 | | -kubernetes:: |
140 | | -Optionally, to configure the {ocp-short} integration, enter your `kubernetes` section. |
| 78 | +`kubernetes`::: |
| 79 | +Optionally, configure the {ocp-short} integration. |
141 | 80 | See xref:proc-configuring-an-rhdh-instance-with-tls-in-kubernetes_running-behind-a-proxy[]. |
142 | 81 |
|
143 | | -permission:: |
144 | | -Optionally, to configure authorization, enter your `permission` section. |
| 82 | +`permission`::: |
| 83 | +Optionally, configure authorization. |
145 | 84 | See link:{authorization-book-url}[{authorization-book-title}]. |
146 | 85 |
|
147 | 86 | . Provision your custom configuration files to your {ocp-short} cluster. |
|
0 commit comments